📢Broadcast Messages (via web or API)
After you've connected your copilot to Slack or WhatsApp, you can send custom messages to your users to notify them of relevant news, reengage inactive users, and more!
Last updated
After you've connected your copilot to Slack or WhatsApp, you can send custom messages to your users to notify them of relevant news, reengage inactive users, and more!
Last updated
@Dara.network / Gooey.AI / support@gooey.ai
Navigate to the integrations tab on the published run that you've connected. Expand "Configure Settings 🛠️" and scroll to the bottom of the settings. For supported integration types like Slack and WhatsApp, you should see the following input widget:
Enter your message and upload audio, video, and other documents as desired. Make sure the file type is supported by the relevant platform. WhatsApp currently supports audio/aac
, audio/mp4
, audio/mpeg
, audio/amr
, and audio/ogg
. Slack has the best support for audio/mp4
or audio/mpeg
. Once you're ready to send the messages, click "Send Broadcast" and you'll be prompted for confirmation. Upon confirmation, the messages will start sending. Depending on how many users you have, it can take a few minutes for all of them to be notified.
Note that WhatsApp restricts free-form message sending to users who have contacted you within the last 24 hours to prevent spam. To sidestep this issue, you can have your message templates approved by WhatsApp. To do this, you must use a custom WhatsApp business integration on Gooey and not one where we manage the number for you. If you have questions, don't hesitate to contact us via support@gooey.ai.
The API supports a few extra features including only sending the message to some subset of users or adding custom buttons. To get started, click the API link (either here or from the integration tab shown above) to view the API documentation for message broadcasting.
You'll use some combination of the example_id
and run_id
query parameters to specify which of your connected published runs you want to broadcast through. These are the same parameters you'll see in the URL on Gooey.AI when you are editing your run or on the integrations tab. To find your run, find it in your history and click on the title to activate it. Then inspect the URL, e.g. "https://gooey.ai/copilot/farmerchat-with-vision/?example_id=nuwsqmzp" -- in this case, we only have the "example_id" query parameter so "https://api.gooey.ai/v2/video-bots/broadcast/send/?example_id=nuwsqmzp" would be our API endpoint URL.
Once you have your API endpoint, you are ready to start making requests. Here's some sample code in Python, NodeJS, and via CURL:
To only broadcast messages to certain subsets of users, we provide some filter options. These include
"wa_phone_number__in": list[string],
"slack_user_id__in": list[string],
"slack_user_name__icontains": string,
"slack_channel_is_personal": boolean
They can be added to the filter object of the payloads in the above example code. For example, to only broadcast to the WhatsApp accounts with phone numbers "1234" and "+1 (420) 666-6969", you could modify the payload to the following: