Custom actions are an advanced workflows feature that allow you to interact with any 3rd party software that has an API. Here are some examples that can be done:
Integrating with Zapier / Workato / integromat by sending a webhook
Sending a message to Microsoft Teams
Sending a highly customized message to Slack
Creating a Jira ticket
Interacting with software built in-house
Sending a webhook from Torii
How to Use?
Start by creating a workflow in Torii from the Workflows page and add a trigger that will control when the workflow should run.
Step 1 — Add a custom action to a workflow
Now, add the "Custom action (HTTP Request)" by picking it from the list:
Step 2 — Choose HTTP method
Pick the method of the HTTP request:
Step 3 — Choose URL
Choose the URL to send the request to. In this example, we are using a Zapier webhook:
Step 4 — Add Query Parameters (optional)
You can now add Query Parameters to the request by providing a valid JSON object.
You can use @ to customize this object. Note that you must provide a valid JSON and wrap strings with quotes as seen in the above example.
Step 5 — Add headers (optional)
If your request requires additional headers, for authentication for example, you can add them as a valid JSON object:
Step 6 — Add body (optional)
You can add a body with a valid JSON payload. In this example, we are sending a JSON payload and using the @ to add customization:
Testing the Custom Action
You can test the custom action by clicking the Run now button of the workflow.