简体   繁体   中英

IBM Watson Assistant: Retrieve a specific conversation via IBM Cloud Functions

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM