我希望通过网络聊天组件https://github.com/SAPConversationalAI/Webchat
重设用户和聊天机器人之间的对话我不想只重置内存,而是整个对话。有想法吗?
答案 0 :(得分:0)
如果您想重置整个对话,则需要从API中删除对话状态。请参阅此处的文档:https://cai.tools.sap/docs/api-reference/#delete-a-conversation
DELETE https://api.cai.tools.sap/build/v1/users/$USER_SLUG/bots/$BOT_SLUG/versions/$VERSION_SLUG/builder/conversation_states/$CONVERSATION_ID
通过以下API调用删除整个会话本身,可以最终重置会话:
DELETE https://api.cai.tools.sap/connect/v1/conversations/$CONVERSATION_ID