This tutorial shows how to use Zapier and the Harvestr API to notify your team in Slack whenever new feedback is linked to a discovery in Harvestr.
This is the outgoing direction: Harvestr → Slack.
If you want the opposite (sending feedback from Slack into Harvestr), use our native Slack integration instead. It's a proper integration, not a Zapier recipe, and it also handles feedback loop notifications back to the thread.
The two are complementary and can run side by side.
Prerequisites
a Zapier account on a paid plan (webhook triggers aren't available on the Free plan)
a Harvestr Editor account
a Harvestr access token with Read access on Feedback, plus Read on Users and companies if you want to show who submitted the feedback, and Read on Discoveries if you want to show the discovery title
Step 1: Create the Zap and get your webhook URL
In Zapier, create a new Zap with Catch Raw Hook as the trigger, from Webhooks by Zapier.
Copy the Webhook URL that Zapier gives you.
Step 2: Create the webhook in Harvestr
Go to Settings > Integrations > Webhooks and click Add webhook.
Leave Secret empty.
Paste the Zapier webhook URL in Endpoint URL and click Check URL. Wait for Verified.
Under Events, tick Created on the Feedback row (the
FEEDBACK_CREATEDevent).Click Add webhook.
In the API and in webhooks, a message is the piece of feedback you receive (a ticket, a call, a Slack thread), and a feedback is that message, or part of it, linked to a discovery. FEEDBACK_CREATED fires each time something is linked to a discovery, whether by a teammate, by HAI or by an automation.
The Feedback payload doesn't contain the content. It carries the IDs of the message, the discovery and the requester. Steps 3 and 4 use the message ID to fetch the content and the channel from the Harvestr API.
Want every incoming message, even before it's linked? Tick Created on the Messages row instead. The MESSAGE_CREATED payload already includes the title, the content and the channel, so you can skip step 4.
Step 3: Parse the webhook data
This step converts the raw webhook payload into fields you can reference in later steps.
Add a Code by Zapier action with the Run Javascript event.
Under Input Data, add a field named
RAWand map it to the Raw Body of step 1.In Code, paste:
let PARSED = JSON.parse(inputData.RAW);
output = [{PARSED}];
The payload fields are now available as PARSED Data Message Id, PARSED Data Discovery Id, PARSED Data Requester Id, and so on.
Step 4: Fetch the feedback content from the API
Add a Webhooks by Zapier action with the GET event, and configure it as follows:
URL:
https://rest.harvestr.io/v1/message/followed by PARSED Data Message IdHeaders:
X-Harvestr-Private-App-Tokenas the key, your access token as the valueleave the other fields as they are
The response includes the message title, content, channel and requester ID.
To create the token, go to Settings > Integrations > Public API and click Create token. Name it, for example Zapier Slack alerts. Under Access, select Read on Feedback, and Read on Users and companies and Discoveries if you'll do step 7. Click Create token, then copy it from Copy your token now.
Step 5 (optional): Filter out feedback that came from Slack
Without this, feedback submitted from Slack gets posted straight back to Slack. Skip this step if you don't use the native Slack integration.
Add a Filter by Zapier step.
Under Only continue if, pick the Channel field returned by step 4, the (Text) Does not contain condition, and type
Slack.
Step 6: Convert the content to Markdown
The content comes back as HTML, which Slack doesn't render. Add a Formatter by Zapier step to convert it to Markdown before posting.
Step 7 (optional): Fetch the requester and the discovery
To show who submitted the feedback, add another GET step on the same principle as step 4, with the URL https://rest.harvestr.io/v1/user/ followed by PARSED Data Requester Id. The token needs Read on Users and companies.
To show which discovery the feedback was linked to, do the same with https://rest.harvestr.io/v1/discovery/ followed by PARSED Data Discovery Id. The token needs Read on Discoveries.
Step 8: Post to Slack
Add a Slack action and build your message from everything you gathered: feedback content, requester, linked discovery, and so on.
Test the Zap, then turn it on.
The finished Zap
Here's a finished Zap, for reference. It was built with an earlier version of the API and includes a separate Get feedback API call step: you no longer need it, since the message call in step 4 already returns the content.
Full API reference at developers.harvestr.io, including the webhook event list and required scopes.








