0

I've been searching for a solution through either Apex or Configuration that would allow my Einstein Bot to read a cookie on the page that my snap-in is deployed onto.

For example, when the Chat Bot is opened, it reads the value of a cookie set on the page userType=Partner and then performs conditional logic to display a certain set of menu items for that user.

Is there any possible way to achieve this with the current release of Einstein Bots? If not, is there any workaround were a page can pass a parametric value directly into the snap-in so that it can be exposed to the bot?

1 Answer 1

1

Look into collecting pre-chat information in this Einstein bot cookbook. It's not a cakewalk and will probably require a lot of trial and error but this is the way to do what you are looking for:

https://developer.salesforce.com/docs/atlas.en-us.bot_cookbook.meta/bot_cookbook/bot_cookbook_optimize_flow_lex.htm

1
  • 1
    Thanks, I was able to achieve passing in data to the Transcript object by leveraging the embedded_svc.settings.extraPrechatFormDetails setting on the embedded service snippet code.
    – Mike
    Dec 26, 2019 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.