Trying to continue conversations Chat GPT

I am trying to chain Chat actions to produce conversations using Chat GPT, I have used the template: Pass Chat GPT response to another Chat action. My trigger is an incoming webhook which I provide the body as the user message for for both chat gpt steps. In the second Chat GPT step I have prior message history: {{steps.chat.$return_value.original_messages_with_assistant_response}}. Previous messages are not being registered by chatgpt and each message is like a new conversation. I have also tried adding a user ID which also hasn’t solved the issue. Thanks

Hi @craigse98,

I’m sorry to hear that you’re having trouble with chaining Chat actions. To help you better, I’d like to clarify a few things:

  1. Are you using the same user ID for both Chat actions?
  2. Can you confirm that the original_messages_with_assistant_response value is being passed correctly to the second Chat action’s Prior Message History prop?

If you’re still experiencing issues, please visit https://pipedream.com/support for more support options.
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.