You need to sign in to do that
Don't have an account?
Michael M
Einstein Bots- possible to run JS from either apex from a flow?
Hello, I am building an einstein bot, and I want to get the url (window.location.href) of the chatbot in the MIDDLE of the einstein bot dialogue (and therefore extraprechatformdetails won't do the job here.) Einstein bots allow invoking either apex or a flow in the middle of a dialogue. My question is: can I run javascript from a flow or apex class, so that I can get the window.location.href and save it as a variable that I can reference in my bot dialogue?
https://developer.salesforce.com/docs/atlas.en-us.bot_cookbook.meta/bot_cookbook/bot_cookbook_call_flow_action.htm
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks
Thank you for those links. I am aware of those-- i know that i can invoke apex and flows. My question is specifically on the js piece. Can I get the window.location.href in the MIDDLE of a einsteni bot dialogue?
check this