userId as variable in Converse API

Hello, maybe someone can help me.

I am using the converse API to interact with the robot, I am sending the userId in the request (https://bbuilder.domain.net/api/v1/bots/disrobotdistri/converse/30/secured?include=state), and I need in some parts of the robot to send that userId (30) to an API to do certain things, how do I extract the userId?

I have tried in some cases but it does not bring anything

{{session.userId}}
{{event.state.session.userId}}

Does anyone know the value of the variable ?

Thanks in advance

Chris

Thanks for your help

I found it

{{event.target}}

Thanks

2 Likes

Hey @christiang.pmp

You were faster than us! Glad you found it and were able to share it with the community.

Happy bot building! :rocket:

1 Like