OpenAI API Call

I am trying to integrate this ChatGPT template into a flutterflow app https://app.flutterflow.io/marketplace/item/P8iqP4HCF1Ob8m4cKneh. I understand how it works and everything I just can't seem to figure out how to apply a system message for the API before each user prompt is sent to the API.

Where in the template am i supposed to add "role": "system", "content": " "}, I can't seem to put it in the body of the API call because of the prompt variable. Any help will be appreciated ๐Ÿ˜€

2
3 replies