If you want to publish moments created with GrowthBooster on your Pinterest account, you need to set up an integration with Zapier.
First of all, go to https://zapier.com/ and create an account (if you don’t have one). You will need a Premium account to work with webhooks and looping.
Create a new zap: click on “Create” and select "Zaps" from the submenu.
Set the name of your zap, then click on the "Trigger" field, the "Change Trigger" popup will open. Type in “Webhook” in the search input and select “Webhooks by Zapier” in the search results list.
The side panel will open. Select "Catch Raw Hook" in the "Event" field then click the "Continue" button.
Copy the “webhook URL”, then go to the GrowthBooster web-application, choose your business, proceed to the “Settings” page, paste the URL into the “Add webhook” field, and click the “Update” button.
Create a new moment in the GrowthBooster for your business and approve it for publishing.
Go back to Zapier and click on the “Test trigger” button.
It may say something like “We couldn't find a request”, which is OK, because GrowthBooster sends moments to the webhook every 10 minutes. Please wait for 10 minutes and click the “Test trigger” button again.
You should see the “We found records...” message. Click the “Continue with selected record” button below.
A new "Change Action" popup opens. Type in "Code" in the search field and select "Code by Zapier".
The side panel will open. Select "Run Javascript" in the "Event" field then click the "Continue" button.
Type in "body in the field below the "Input Data" label, then click in the "Enter text or insert data..." field and select the "Raw Body".
Copy script below and paste it into the “Code” field:
output = JSON.parse(inputData.body).map((moment) => {
return {
description: moment.description,
formattedAddress: moment.from_office ? moment.business.name +' office': moment.formatted_address,
customerName: moment.customer || 'Anonymous customer',
employeeName: moment.employee?.name || moment.business.name,
mainImage: moment.images.length ? moment.images[0].full_url : 'no image',
categoryName: moment.category?.title || 'Uncategorized'
}
})
You will get something like this. Click the “Continue” button.
Click the “Test step” button.
You will see something like this. Click the “+” button below the "Run Javascript in Code by Zapier".
A new "Change Action" popup opens. Type in "Loop" in the search field and select "Looping by Zapier".
The side panel will open. Select "Create Loop From Line Items" in the "Event" field then click the "Continue" button.
Type “Description” in the “Values to Loop” field, click in the “Enter text or insert data…” field, select “Run Javascript in Code by Zapier”, and click on the "Description" field.
Click the square-shaped “+” button to add a new line.
Fill up the “Set up action” form as shown below.
Scroll down and click the "Continue" button.
Click the "Test step" button.
Click the “+” button below the "Create Loop From Line Items in Looping by Zapier".
A new "Change Action" popup opens. Type in "LinkedIn" in the search field and select "LinkedIn".
The side panel will open. Select "Create Loop From Line Items" in the "Event" field then click the "Continue" button.
Click the "Sign in" button in the Account section.
The LinkedIn "sign in" dialog window opens. Type in your credentials and click "Sign in".
Click the "Continue" button.
Click in the "LinkedIn Company Page" field and select the company (Note: You must be an administrator of a Company Page).
Click in the "Update Content" field and select "Create Loop From the Line Items in Looping by Zapier"->"Description.
You can fill out the "Preview - URL", for example, put your website URL there, and specify the "Preview - Title" and "Description" as well. Then click the "Continue" button.
Click the "Test Step" button. You should see something like this.
Click the "Publish" button.
Congratulations! You’ve successfully set up posting from GrowthBooster to LinkedIn. The moment has landed on LinkedIn if you haven't specified the "Preview - URL", "Preview - Title", and "Preview - Description" it looks like this: