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
Sam Sam 85Sam Sam 85 

Apex Code Accessing Einstein Bot Entities

Hi everyone,

Is there a way for apex code to access the einstein bot out-of-the-box entities and custom entities?  I would like to use the bot entities to apply it to a user utterance / last user input, in my apex code.

For example, the user entered into the bot the sentence “I want to see a cardiologist”.  I want to be able to, through Apex code accessing my Einstein bot entities or some other way in Apex code, pull out the word “cardiologist” from the user input. 

Thank you.
MagulanDuraipandianMagulanDuraipandian
Sam,
You can calll the apex from BOT and return the results.
https://www.infallibletechie.com/2019/08/how-to-call-apex-from-einstein-chat-bot.html