How it works
- A Gong automation rule fires and sends a POST request to your Nango webhook URL.
- Nango verifies the delivery’s signature (if you’ve configured a public key), then routes the event to the connection identified by the
nangoConnectionIdquery param on the webhook URL — Gong’s payload has no field that identifies a single Nango connection, so this param is required. - Nango forwards the event to your app, or triggers a sync.
Setup
1. Get your Nango webhook URL
In the Nango dashboard, open your Gong integration and copy the Webhook URL. Append?nangoConnectionId=<CONNECTION-ID> for the connection you’re registering this rule for.
2. Create an automation rule in Gong
- Go to Admin Center → Settings → Ecosystem → Automation rules and select + Add Rule.
- Use the filter icon to set which calls should trigger the rule.
- In the Action dropdown, keep Fire webhook and paste your Nango webhook URL (with
nangoConnectionId) as the Destination URL. - Choose an authentication method:
- Signed JWT header — Gong signs deliveries with an RS256 JWT in the
Authorizationheader. Click Show public key and copy it.
- Signed JWT header — Gong signs deliveries with an RS256 JWT in the
- Name the rule, test it against a sample call, then enable it.
3. Set the public key in Nango
Gong issues a public key per automation rule, so a single integration-level key only covers one connection. Where you store it in Nango depends on how many Gong connections you have under this integration:- One connection: paste the public key as the Webhook secret on the Gong integration in the Nango dashboard.
-
Multiple connections: each one has its own automation rule and public key, so set each connection’s public key as
webhookSecretin that connection’s metadata instead:PATCHmerges into any metadata the connection already has;POSTon the same endpoint replaces it entirely, so preferPATCHunless you specifically want to wipe existing metadata. Nango checks the integration-level Webhook secret first and falls back to the connection’s metadata when that’s not set.
If neither a Webhook secret nor a connection-level
webhookSecret is set, Nango rejects the delivery instead of accepting it unverified.Handle the webhook
Once routed, you have two options:- Forward it to your app — Nango forwards the event to your webhook URL with connection attribution. See External webhook forwarding.
- Process it in a sync — run a sync when the webhook arrives using
webhookSubscriptionsandonWebhookin a sync script. See Real-time syncs.
Payload
Each delivery containscallData (the call record, with the same structure as Gong’s API) and isTest (true when sent from the rule’s test button). See Gong’s webhook payload reference for the full schema.