function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rakesh K 60Rakesh K 60 

liveagent api fire event

Hi,

I'm trying to interact with LiveAgent using Javascript(node.js) and LiveAgent Rest APIs. I've gone through the documentation of it. Here one help I need is, how can I fire an event when the agent sends the message to user/client? In the documentation It appeared mostly Inbound, but how can I make it outbound even. 

Thanks
SwethaSwetha (Salesforce Developers) 
HI Rakesh,
lightning:conversationNewMessage is an event on Chat that is triggered when the customer, agent, or supervisor sends a new message.

See https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_events_liveagent_conversationnewmessage.htm for more information.

Also, lightning:conversationCustomEvent is useful when a custom event occurs during a chat.
https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_events_liveagent_conversationcustomevent.htm
 
Hope this helps you. Please mark this answer as best so that others facing the
same issue will find this information useful.
 
Thank you