Can I use response path as a session id for third party APIs?

(Talvinder) #1

Hi,

I am integrating with api.ai and need to supply a session id to the endpoint. I am currently using response path for this purpose. Is this a good practice? What are the downsides if any?

(John Jackson) #2

The session ID is usually so that you can maintain context for the same user. So in this respect the response path (an ID unique to the user for the life of their conversation with the bot) should be a good choice.

It is quite long though - if you need to cut it down, use the RHS of it rather than left, which will ensure it’s always unique.