Replygrow logo

Replygrow

Find leads

Reach out

Reply

Run many accounts and clients

Stay safe

All features
Pricing
Help CenterIntegrationsReverse webhooks: add leads from your CRM to a campaign

Reverse webhooks: add leads from your CRM to a campaign

A reverse webhook lets another tool send a lead to Replygrow and add it to a campaign. Use it when a new lead lands in your CRM with a LinkedIn profile URL and you want it in a campaign without importing anything by hand.

What a reverse webhook is

You send an HTTP POST request with a JSON body to this endpoint:

https://api.replygrow.com/api/inevitable/direct_actions/

Add your API key in the rw-api-key header. The JSON body looks like this:

{
  "execution_strategy": "LinkedInAddToCampaignStrategy",
  "profile_url": "https://www.linkedin.com/in/example/",
  "campaign": 63,
  "placeholder_1": "My custom placeholder",
  "placeholder_2": "2022-04-17 15:27:15"
}
  • execution_strategy: the action to run. Use LinkedInAddToCampaignStrategy to add a person to a campaign.
  • profile_url: the prospect's LinkedIn profile URL.
  • campaign: the ID of the campaign that receives the lead (63 is an example).
  • placeholder_1, placeholder_2: optional custom placeholders for this contact. They can hold any data, such as a phone number or a CRM field.

The rest of this article sets it up with Zapier and Pipedrive.

Step 1: Create a campaign

Create the campaign that will receive the leads.

  1. Go to Campaigns and click Add new campaign.

  2. On the Leads step, choose Integration with webhook. Note the Campaign ID shown on the screen.

    Webhook Integration screen with the campaign ID and setup steps

  3. Click Continue to add steps, build the sequence and launch the campaign.

Step 2: Create your API key

The key belongs to the LinkedIn account you are on, and each account has its own.

  1. Go to Integrations.

  2. Click Setup Reverse webhooks.

  3. Enter a name for the key.

    Create API key dialog with a key name field

  4. Copy the key and save it somewhere safe. For security, you can't view it again.

    Newly created API key shown once for copying

If you lose the key, delete it and create a new one. Then update the key everywhere you send requests.

Step 3: Find your campaign ID

The Campaign ID is on the webhook screen from step 1. For an existing campaign, open it from the Campaigns page and go to the Integrations tab.

Campaign Integrations tab showing the campaign ID

Step 4: Set up the Zap

This example pushes people from Pipedrive. Use a custom field in Pipedrive for the LinkedIn profile URL so you can pick it in Zapier. See Pipedrive custom fields.

Set the trigger

  1. Go to Zapier and click Create Zap.

  2. Select Pipedrive and choose your trigger event. This example uses Updated person, but any event works.

    Zapier trigger step with Pipedrive and an Updated person event

  3. Select the Pipedrive account the leads come from.

  4. Click Test & review and check that the data is there.

Add the webhook action

  1. Add a second action: choose Webhooks by Zapier, select POST and click Continue.

    Zapier action step with Webhooks by Zapier and the POST event

  2. For URL, enter https://api.replygrow.com/api/inevitable/direct_actions/. Set Payload Type to json.

    Zapier Set up action with the URL field and Payload Type set to json

Add the data fields

  1. In Data, add the fields from the payload above. Map profile_url to your Pipedrive field.

    Zapier Data fields: execution_strategy, profile_url, campaign, placeholder_1 and placeholder_2

    Zapier Data field mapping the profile_url from the Pipedrive person

    Zapier Data field with the campaign ID entered

  2. To add your own placeholders, add more fields named placeholder_1, placeholder_2 and so on.

    They can use CRM data or your own text, such as address, phone, email or country.

    Zapier Data fields placeholder_1 with custom text and placeholder_2 with the update time

  3. Leave Wrap request in array and Unflatten set to No. Leave File and Basic auth empty.

    Zapier action options with Wrap request in array and Unflatten set to No

Add the API key header

Under Headers, add rw-api-key and paste your API key as the value.

Zapier Headers field with rw-api-key and the API key value

The finished action looks like this.

Completed Zapier webhook action with URL, data and header

Test and turn on

Test the step and turn on your Zap. When the webhook runs, the prospect is added to the campaign.

Campaign prospects list showing the prospect added by the reverse webhook

Make and other tools

In Make or any other automation tool, use an HTTP request module with the same endpoint, the rw-api-key header and the same JSON body.