You need to sign in to do that
Don't have an account?
![Mikko Malmari Mikko Malmari](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Best way to trigger apex on live agent chat request
I want to build a custom implementation using the Live Agent API, but I've yet to figure out how to get information about a chat request made by a visitor, and to trigger Apex once a request is made. Is this something that can be accomplished with Process builder or Visitor trigger?
You could write a before or an after Insert Apex Trigger on the LiveChatTranscript object (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_livechattranscript.htm) to trigger your custom logic. As per the documentation "LiveChatTranscript is automatically created for each Life Agent chat session and stores information about the session. This object is available in API version 24.0 and later."
Your Apex trigger can be as follows.
Has your issue been addressed? If yes, please close this thread.
Not yet, however I am not sure where the exact issue is. I tried triggering a REST API call to an external url but have not been able to receive the call on the server.