Hi! I’m currently using the External API integration in Convai to send user data to my backend.
What I need is to associate my backend updates with the same conversation — not create new records on every External API call. In other words, I want to know if there’s a way to send or retrieve the current sessionID (or conversation ID) inside the External API call context, so I can update an existing record in my database instead of inserting a new one.
For example:
-
When a new user starts talking to the avatar, it asks for their name → I create a new record in my database using the External API.
-
Then, during the same conversation, the avatar asks for more details like which project they want to work on → I want to update that same record using the same session or conversation ID.
I thought about storing the session in localStorage, but since the External API runs server-side (Python), I assume that wouldn’t work.
So, my question is:
Is there a way to get or send the current sessionID from the conversation when using the External API, so I can maintain continuity between API calls?
Basically: I need to know if I can access the sessionID from the External API context to update user data across the same conversation.
Thanks a lot for any help — this would be really useful for multi-step data collection experiences!