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
Philippe UyttendaelePhilippe Uyttendaele 

Einstein Bot sendCustomEvent

Hello,
We are setting up a custom liveChat throught the rest API documentation.
--> from here : REST API LiveAgent (https://developer.salesforce.com/docs/atlas.en-us.live_agent_rest.meta/live_agent_rest/live_agent_rest_understanding_resources.htm)

We are have used the possibility for our agents to upload specific documents and have them correctly integrated using costomEvents
--> from here : Send Custom Events (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_sendCustomEvent.htm)

Now we are looking into automate this process with the help of Einstein Bots.
We have read the cookbook carefully
--> from here : Einstein Cookbook (https://developer.salesforce.com/docs/atlas.en-us.bot_cookbook.meta/bot_cookbook/bot_cookbook_overview.htm)

But i still cannot figure IF/HOW to have Einstein bots trigger these custom events as they are currently javascript based...
I guess i would need to have Einstein call an Invocable APEX but ... that would require the appropriate APEX commands which i am looking for.

Anyone has information on this ?

thanks very much !
AbhishekAbhishek (Salesforce Developers) 
Hi Philippe,

Please feel to reach out to the accelerator team who can give you the idea of how you can implement according to your business requirement if you have the premier success plan.

Please find the details on how to request for an accelerator:https://help.salesforce.com/articleView?id=000337601&type=1&mode=1

Otherwise, I would request you to reach out to your Account Executive If you wish to upgrade to Premier Support please contact your Account Executive.

Thanks.
Philippe UyttendaelePhilippe Uyttendaele
hello abisheck,

i reached out to salesforce and they directed me here.
When i read the documentation about accelerator, they intend to setup a 'simple' bot and have a step by step element to do a bot.
The integration through API and handling of custom events does not seems to be covered...

Philippe
Philippe UyttendaelePhilippe Uyttendaele
Hello Support,
I 'just' need to know what APEX method / function i need to use to send CustomEvents

Thanks !