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.
Run
Examples
API
Loading...
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.
bot_wa_phone_number
conversation_id
integration_id
integration_name
platform
request (JSON)
request
response (JSON)
response
user_id
user_message_id
user_wa_phone_number
web_url
Add
Run cost = 5 credits
Functions are free if called from another workflow.
🏃 Submit
By submitting, you agree to Gooey.AI's terms & privacy policy.
Return value
Generated in 0.5s on
...
ℹ️ Details
🙋🏽♀️ Need more help? Join our Discord