chat-messages
API. A conversation_id
is generated for each session and must be included in subsequent API calls to maintain the conversation flow.
Important Note: The Service API does not share conversations created by the WebApp. Conversations created through the API are isolated from those created in the WebApp interface.
conversation_id
:conversation_id
: When starting a new conversation, leave the conversation_id
field empty. The system will generate and return a new conversation_id
, which you will use in future interactions to continue the dialogue.conversation_id
in Existing Sessions: Once a conversation_id
is generated, future calls to the API should include this conversation_id
to ensure the conversation continuity with the Dify bot. When a previous conversation_id
is passed, any new inputs
will be ignored. Only the query
is processed for the ongoing conversation.chat-messages
API: