WhatsApp via Gupshup
Connect a WhatsApp number you already run on Gupshup to your avatar, using your Gupshup App ID.
Use this option when your WhatsApp number is already set up in a Gupshup app. Once connected, messages sent to the number reach the avatar and appear in Conversations.
Before you start
- A Gupshup app with WhatsApp whose onboarding is finished at Gupshup (the app is live).
- The app linked to Partner ID 3691 on the Gupshup platform. The connection screen reminds you of this.
- The app's App ID. You find it in the Gupshup dashboard under Apps.
- A phone with WhatsApp, to send the first message to the number.
- Access to Settings › WhatsApp Connection in the Tolky platform.
Connect
Open the connection screen
Choose Gupshup
Enter the App ID
Configure the webhook, if asked
Send the first message
Confirm
If the app was already active, Tolky connects it right after Connect, without the first-message step.
Test
Send a message to the number from another phone. The avatar answers and the conversation appears in Conversations.
Manage
The Current Connection card shows the number, the connection date and the Real-time status from the provider. Use the icons at the top of the card:
- Refresh status queries Gupshup again.
- Configure Webhook opens the webhook settings of the Gupshup app.
Disconnect
| Option | What happens |
|---|---|
| Disconnect from platform | Conversations stop appearing in Tolky and message delivery is switched off at Gupshup. This cannot be undone: to use the number again you need a new Gupshup app, or to re-enable the subscription at Gupshup. |
| Disconnect completely | The number is unlinked from Gupshup and removed from Tolky. It stops sending and receiving messages through the API, and onboarding starts from scratch. |
Common problems
| Symptom | What to do |
|---|---|
| "App not found on Gupshup. Check the appId you provided." | Copy the App ID again from Apps in the Gupshup dashboard. |
| "The app is not live on Gupshup yet." | Finish onboarding at Gupshup, then click Connect again. |
| "This app is already linked to another account." | Use another App ID, or disconnect the account that uses this app. |
| "Could not identify the selected host." | Select the account again in the selector at the top of the screen and try again. |
| "No message detected in 3 minutes." | Check that you sent the message to the number shown, then click I've sent it, check now. |
| "Error saving webhook configuration. Please try again." | Click Save again. If it keeps failing, check the app at Gupshup. |
| "Provider query rate limit exceeded." | Wait a few minutes before clicking Refresh status again. |
| Disconnect completely is disabled | The provider status could not be loaded. Click Refresh status and try again. |
Webhook, events and status codesTechnical details
Webhook settings
Configure webhook creates or updates the subscription of your Gupshup app. Tolky checks it before it waits for the first message.
| Field | Value |
|---|---|
| Webhook URL | Keep the production option (Produção). It points the app to Tolky. |
| Tag | tolky-webhook by default. |
| Version | Meta Format V3 (fixed). |
| Active | Shown only when a subscription already exists. |
| Events | Required, always on: FAILED, MESSAGE, SENT, DELIVERED, READ. Optional: ENQUEUED, TEMPLATE, TEMPLATE_EVENT, ACCOUNT_EVENT, BILLING_EVENT, USER_EVENT, FLOWS_MESSAGE_EVENT, OTHERS. |
Webhook check results
| Code | Message on screen |
|---|---|
NO_SUBSCRIPTION | No webhook subscription found on the Gupshup app. |
URL_MISMATCH | Webhook URL does not point to Tolky. |
VERSION_MISMATCH | Version must be Meta Format V3. |
MISSING_MODES | Missing required events: (list). |
INACTIVE | Webhook is inactive on Gupshup. |
UPSTREAM_ERROR | Could not reach Gupshup. Try again in a moment. |
Connection error codes
| Code | Meaning |
|---|---|
APP_NOT_FOUND | Gupshup does not know this App ID. |
APP_NOT_LIVE | The app has not finished onboarding at Gupshup. |
APP_ALREADY_LINKED | The app is linked to another Tolky account. |
BACKEND_ERROR, UNKNOWN | Generic failure. The screen shows "Error connecting to the server." |
Activation states
| State | What the screen shows |
|---|---|
pending_provisioning | Onboarding still in progress, with the instruction returned by Gupshup. |
pending_first_message | One more step: send the first message. Tolky learns the number's WhatsApp identifiers from the first message the webhook delivers. |
active | The account is connected. |
Real-time status
| Provider status | Badge |
|---|---|
CONNECTED, ACTIVE | Active |
FLAGGED, RESTRICTED | Flagged |
RATE_LIMITED | Limit reached |
BANNED | Banned |
OFFLINE, DISCONNECTED | Offline |
| Anything else | Unknown |