1

How can I extract a specific user conversation from all chat logs? I noticed that the chat-log JSON response contains a field named conversation-id.
My goal is to obtain, via Cloud Function, that specific conversation id for the current conversation. So, when the conversation starts how can I retrieve the current conversation id?

data_henrik
  • 16,724
  • 2
  • 28
  • 49

1 Answers1

3

The answer is similar to this one: You can access context variables using either context[variableName] or $variableName. See the documentation on expressions for accessing objects in IBM Watson Assistant.

The conversation_id is in the set of context variables (context.conversation_id). You can access it as part of that structure.

data_henrik
  • 16,724
  • 2
  • 28
  • 49