Save Copilot Data to an External Server Endpoint

This example collects all the parameters (the user's query, the bot's answer, WhatsApp number number, etc) from the (copilot)["https://gooey.ai/copilot"] workflow and sends it to an arbitrary endpoint. Alter this example with the REST API of your own server to log every interaction.


Loading...

⌥ Variables

Pass custom parameters to your function and access the parent workflow data. Variables will be passed down as the first argument to your anonymous JS function. Learn more.



Run cost = 5 credits

Functions are free if called from another workflow.

By submitting, you agree to Gooey.AI's terms & privacy policy.

Return value

{7 Items
"audio"
:
NULL
"image"
:
string
"https://storage.googleapis.com/dara-c1b52.appspot."
"question"
:
string
"Files: image.png Read the text from this image an"
"response"
:
string
"Sure, I can help match the numbers from the scatte"
"conversation_id"
:
string
"1OwO"
"bot_wa_phone_number"
:
string
"+45 93 70 64 51"
"user_wa_phone_number"
:
string
"+91 87640 22384"
}

Generated in 0.5s on 

...