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 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

  user_message_id

string

  web_url

string

  user_wa_phone_number

string

  conversation_id

string

  bot_wa_phone_number

string

  integration_name

string

  request

object

Loading...

  user_id

string

  platform

string

  integration_id

string

  response

object

Loading...
Secrets

Run cost = 1 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 99 99 99 99"
"user_wa_phone_number"
:
string
"+91 87650 11111"
}

Generated in 0.7s on 

...