Using webhooks with WorkflowGen


About webhooks

Webhooks allow an API to exchange information with other applications through HTTP post requests. They can be used for notifications when an expected event (as previously configured by the user) has occurred.

Since they allow real-time communication, webhooks are efficient and performant.

Webhooks can be used to build integrations with extendable applications such as Slack, GitHub, and Dropbox.

Webhooks communicate in both directions:

  • Outgoing webhooks are a simple way to post notifications from an API to an external resource, such as to post a message to a Slack channel. See the Outgoing webhooks section in the WorkflowGen Integration Guide for more information.

  • Incoming webhooks can be sent from external applications to trigger exceptions when an expected event has occurred. In this case, the API should be configured to receive external application payloads and interpret them. See the Incoming webhooks section in the WorkflowGen Integration Guide for more information.

Integrating webhooks with WorkflowGen

WorkflowGen uses the SENDHTTPPOST workflow application (available as of version 6.6.0) to send outgoing webhooks to external applications using JSON or URLENCODED payloads. The SENDHTTPPOST application will then receive and process the response from the external API.

For an example of how you can use SENDHTTPPOST to send messages to Slack channels from WorkflowGen, see the Workflow Application: Using SENDHTTPPOST to send messages to Slack topic.

For samples of APIs that use SENDHTTPPOST, see the SENDHTTPPOST Workflow Application repository on GitHub.

For more information, see the SENDHTTPPOST workflow application section in the WorkflowGen Administration Module Reference Guide.

WFG and JIRA integration