Skip to Content

MongoDB in Conversational AI


I have a webchat up and running, I would like to check if all the messages received and sent are stored in Mongo DB like its shown here ?

if they are can we access them ?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 05, 2019 at 10:21 PM

    Hi Dhillon,

    if you use the webchat with SAP Conversational AI, we store the messages as well. You can retrieve them as follows:

    1. Authenticate all following API calls by using the developer token of your bot or version and setting the `Authorization` header to `Token {developer_token}`.
      further information:
    2. Retrieve a list of conversations by making a GET request to
      API documentation:
    3. Using the IDs of the conversations retrieved in the previous request, you can fetch the details for the specific conversations, including the messages.
      This can be done with a GET request to${CONVERSATION_ID} (replacing ${CONVERSATION_ID} with the actual ID.
      API documentation:

    Accessing the database is not possible.

    If you are interested in the users' messages only (without the response of your bot), you can also have a look at the log feed by using the Monitor tab or the Logs API endpoint.

    Through the API the logs can be retrieved with a GET request to${USER_SLUG}/bots/${BOT_SLUG}/logs (you have to replace ${USER_SLUG} with your actual user slug or the organization slug (if the bot belongs to an organization) and ${BOT_SLUG} with the bot slug). You can find the documentation for that at

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.