Webhooks
How to use webhooks to connect Portant
Last updated
How to use webhooks to connect Portant
Last updated
If you need to use a source we haven't integrated with yet, you can use webhooks to source data from almost any application on the internet. If an app can send data to a Webhook, you can integrate it with Portant. For instance, you can add the Portant Webhook to Tally or Typeform, so that any time a form in these applications receives a submission, a Portant workflow will be triggered.
In this article, you’ll learn how to:
Select a Webhooks as a workflow source
Generate your webhook address
Add your webhook address to your other application
Webhook Data Format
Create a test submission
Format your document
Finish your workflow
The first step is to select a Webhook as the source for your workflow. So click 'New Workflow', enter your workflow name icon and colour, then select 'Use a webhook' as the source.
After you have selected a webhook as the source, Portant will automatically generate a unique webhook address:
Copy this address to your clipboard and then open your application's webhook section and paste the link in the webhook field.
After you have copied your webhook address, open your other application, navigate to the webhook section, and paste it into the relevant section.
To learn how to add a webhook to Tally, visit this page: https://tally.so/help/webhooks
To learn how to add a webhook to Typeform, visit this page: https://www.typeform.com/help/a/webhooks-360029573471/
When sending data to Portant via webhooks, payloads should be structured in a key-value format.
Here’s an example payload of how we expect data to be structured for an article:
This example also demonstrates how to structure data for table grouping in your document by utilizing webhook data grouping
It is important to send a test submission to Portant after you have set up your webhook because this is how Portant sets it up as a source table. The source table is how you add {{tags}} into your documents/presentations/emails in order to customise them.
You can either use your application's 'Test submission' functionality. Or you can manually process the data to simulate future submissions.
After you have created a test submission, Portant's webhook block will look like this (with submissions on the left and the fields on the right)
You can now add a document/presentation/email block to your workflow and use the fields captured in the webhook to customise the document.
After you've set up the rest of your workflow, we recommend sending one more test to ensure if it is all formatted correctly.
Then when the workflow is live, you will be able to see webhook submissions in the webhook block and expand the submission to see the data:
The created output documents will be displayed in your output tab and saved in a Google Drive folder:
That's all there is to it, you've just set up a document workflow using a webhook as a data source.
We created Portant in 2021, and the feedback we have received since then has been very helpful and greatly appreciated. If you have any feedback, please feel free to send us an email at contact@portant.co or use our contact form here: https://www.portant.co/support