In this step-by-step guide we'll walk you through the following common use case: Whenever a ticket is created in Zendesk, you want to look up additional customer data from your database or API and want to save that data into the Zendesk user. That way, when one of your customers contacts support, their Zendesk user gets automatically updated in the background and your agents have current information to work with.
First, you need a FactBranch account. If you haven't done so, simply start your free trial today and follow this tutorial.
Then head to your list of flows in FactBranch and create a new flow. Select Use FactBranch as a webhook.
A webhook is an API endpoint, that get's called when a certain event happens. In our case FactBranch will provide you with an API endpoint that runs all nodes in that flow. Zendesk can then call this endpoint when a new ticket is created.
Once you've created the webhook flow in FactBranch, your flow only consists of the trigger node.
You can add more nodes later, but first, click on Config to open the trigger config. You'll see all the details you need to add this endpoint to an external tool. In our case this is Zendesk.
Activate Record requests to later record some real test data from Zendesk.
In your Zendesk Admin Center, click on Apps and integrations in the sidebar, then select Webhooks. Click Actions and select Create webhook.
Click Create to create the webhook in Zendesk.
We're almost done! Now let's create a trigger in Zendesk, that calls the webhook for every new ticket.
In your Zendesk Admin Center, click on Objects and rules in the sidebar, then under Business rules select Triggers. Click Add trigger.
{
"ticket_id": "{{ticket.id}}",
"email": "{{ticket.requester.email}}"
}
Click Create to create the trigger.
Zendesk will now call the FactBranch flow when a new ticket is created. Go ahead, and either create a ticket manually or wait for a real ticket to come in. You should now see incoming data on the FactBranch trigger page.
You can now add more nodes to the flow. For example to look up customer data in your SQL database.
If you want to update the Zendesk user or the ticket based on those results, add a REST API node to your flow and call the relevant Zendesk API endpoint.
Sign up for our newsletter to get our freshest insights and product updates.
We care about the protection of your data. Read our Privacy Policy.