[New] Incoming web request triggers

Summary

Asana Rules allow you to automate common patterns and workflows in Asana. Rules comprise triggers that will automatically perform actions. For example, a rule can be created to automatically assign a task (action) when a due date is set (trigger).

To support cross-application workflows, the API now supports incoming web requests as a generic trigger to connect external applications to Asana through rules. This allows users to setup workflows outside of Asana that can perform operations on data within Asana.

As shown in the above screenshot, you can select a web request to trigger a rule in Asana. When the request is received, any number of user-defined automations can be run. In this example, a task will automatically be created and assigned to the user who triggered the web request. The rule will also leave a comment on the task containing the data from the request body.

Usage

This feature is currently in beta and is expected to change. Therefore, this API should only be used for testing. During the beta period, we strongly recommend against using it in production apps as the API may change without notice.

When you set up a “Web request received” trigger in an Asana rule in the web app, a custom request URL will automatically be generated (i.e., API endpoint to trigger this rule).

HTTP method API endpoint Asana behavior
POST /rule_triggers/:trigger_identifier/run Requests made to this API endpoint will trigger an automation via a rule.

With incoming web requests, you can build a low-code integration using Asana rules. For example:

  • When a Salesforce record reaches a particular stage (e.g., “Demo for client”), use incoming web requests to automatically create a task in Asana. This rule can be coupled with other rules (e.g., when a task is created, convert it to a project).
  • When a Zendesk ticket is closed, use incoming web requests to automatically mark a corresponding task in Asana as “Complete.”

For full details, including code samples and a comprehensive tutorial, visit the incoming web requests documentation

Questions & feedback

To get hands-on experience with the beta, navigate to the Rule Builder in your Asana web app and create a “Web request received” trigger.

Your input is an essential part of making this feature even more powerful and user-friendly – we look forward to hearing from you.

Happy coding!

Best,
Andrew