I am trying to get sessionId from response object but is that an efficient way or are there any other possibilities to get the session Id or sessions object?
For example:
request.body.session
: projects/coffee-shop/agent/sessions/e6eb1812-9c3f-23fa-b590-f1656ee9a56e
How to get exact ID:e6eb1812-9c3f-23fa-b590-f1656ee9a56e
instead of path.
or How to get the sessions object in the path projects/coffee-shop/agent/**sessions**/e6eb1812-9c3f-23fa-b590-f1656ee9a56e
Yes, you can grab the session id off the agent instance of WebhookClient: