trigger conversation
# 🤝help
c
How can I the conversations from botpress in my organizations SQL database?
s
Hi Wobble! To store the conversations from Botpress in your organization's SQL database, you can use the Botpress API. Here's a brief overview of the steps you'll need to follow: 1. Use the Botpress API to retrieve the conversations list by sending a GET request to
https://api.botpress.cloud/v1/chat/conversations
. 2. Format the response data according to your SQL database structure. 3. Connect to your SQL database using the appropriate libraries or tools. 4. Insert the conversation data into your SQL database tables. By following these steps, you can retrieve and store the conversations from Botpress in your organization's SQL database for further analysis or integration with other systems.
c
Thanks for the response. Few ore things follow up to this: 1) How can I make sure that this (API call) is triggered at the end of the conversation automatically? 2) Is there a way to also fetch data captured in the variables? I am fairly new to coding, so if you can provide some references or relevant documentation that would really help!!