I am trying to use prior conversation history in my workflow. I currently have incoming webhook > store_conversation_history datastore (this stores the incoming messages from the webhook) > OpenAI. Under ~“Prior Message History” in Chat GPT I have placed the store_conversation_history, I am unsure whether this is the correct way or should I be creating a new data_store in order to store the conversation history? Also under system instructions do I have to say I want to access prior message history or will it automatically know how to do so? thanks
Hi @craigse98,
To use prior conversation history in your workflow, you should pass the stored conversation history to the “Prior Message History” prop in the Chat GPT action. It seems like you’re doing it correctly by using the store_conversation_history
datastore.
For the “System Instructions” prop, you don’t need to specify that you want to access prior message history. The Chat API will automatically use the provided prior message history when generating a response.
Make sure that the conversation history you pass to the “Prior Message History” prop is in the Chat API’s messages format. If you need an example of how to chain Chat actions and pass prior message history, you can refer to this workflow: Integrate ChatGPT with 1,000 other apps
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.