Here’s an example of a config file for an integration-based action, where the action is triggered by a webhook request from an integration.

Slack Action’s config.json

{
  "slug": "slack",
  "name": "Slack",
  "triggers": [
    {
      "type": "on_create",
      "entities": [ "IssueComment", "LinkedIssue" ]
    },
    {
      "type": "source_webhook",
      "entities": [ "slack" ]
    }
  ],
  "integrations": [ "slack" ]
}
You can find the whole code for this example slack trigger here