How can I access to context variables stored in XO dialog tasks from SmartAssist?

I want to send context variables like {{context.session.BotUserSession.A}} via API service in SmartAssist. Is there any way to do it?

Hi @justin.lyles122 ,

Welcome to Kore.ai Community.
Could you please elaborate more on your requirement ?

That would help us to check and update you.

Thank you,
Srujan Madderla
Kore.ai Community Team

Hi, @srujan.madderla .
I put some variables in BotUserSession in Dialog tasks of XO platform.

BotUserSession.put("A", "ABC");

And connected the bot to SmartAssist via Automation.
When call disconnects, I want to send that data to some endpoints via Service Node.

Is it enough? Or anything else you need?

Thank you.

Hi @justin.lyles122 here is the documentation that can help understand how to access automation bot context from Smart assist.

Hope this helps.

https://docs.kore.ai/smartassist/utils/script-nodes-call-flows-agent-utils/

1 Like

Hi Justin, I am also trying to do the same, can you help me with how did you get/access the variable in smart assist ? I am able to access last message of BotUserSession but not the custom variable i have added in XO platform.

Hi, @jasreen.mehta.
You can access to UserSession variable like this {{context.UserSession.webhook_url}}.
Hope this helps you.

2 Likes