Introduction to Webhooks

Webhooks connect your forms to external systems, including AI services, in real time and deliver results directly into the workflow, without requiring users to leave the app.

Available on the Elite tier:

Digital
Intelligent
Elite
?

Contents


What is a Webhook?

A Webhook fires when a user answers the required parameter questionsClosed A parameter question is any question defined in your form that's also used to provide values to an On-Demand Data Source or a Webhook query., calls an external REST API, and returns the result directly into the form. Use a Webhook to pull data on a specific record, perform calculations, trigger actions in an external system, or call an AI service.

What are my Webhook response usage options?

Choose the right Webhook configuration based on what you need to do with the response:

Type What it does When to use it
Info Webhook Sends parameters and displays the response as read-only in the form. Runs automatically or manually. The technician only needs to view reference information.
Routing Webhook Sends parameters, receives a response, and routes values into other form questions. Runs manually. The response should update answers or drive form logic.

Note:If the form requires tabular data, for example, to populate a dropdown or list of options, use a Data SourceClosed Data sources, also known as "Lookups", are external sources of data that you upload or connect to TrueContext. You can reference this data in a form to populate answers or answer options. Data sources save typing, reduce errors, and make it easy to provide mobile users with only the relevant, most current data. instead.

Info:For guidance on choosing between Standard Data SourcesClosed Data sources, also known as "Lookups", are external sources of data that you upload or connect to TrueContext. You can reference this data in a form to populate answers or answer options. Data sources save typing, reduce errors, and make it easy to provide mobile users with only the relevant, most current data., On-Demand Data Sources, and Webhooks, see the On-Demand Features Overview.

How does a Webhook work?

  1. A form designer configures a FormSpaceClosed FormSpaces are where forms are stored and organized in the TrueContext Web Portal. A TrueContext Team may have multiple FormSpaces, depending on their needs. Admins can set FormSpace permissions to control which users have access to the forms in that FormSpace.-level Webhook, adds a Webhook question to a form, and maps parameter questions to the required inputs.

  2. The Webhook runs automatically when all parameter questions are answered, or when the user selects Run Action.

  3. The Webhook question stores the response as the answer value, displays it in the form, and, if routing is configured, saves specific parts of the response as the answer to other form questions. If confirmation is required, the user is prompted before values are applied.

  4. The submission includes the Webhook response and any routed answers. Reviewers see them alongside other responses in the web portal and documents.

  5. The form can use the response for info only, for routing, or for both usages combined.

When should I use a Webhook?

Use a Webhook when you need to retrieve or act on a single data object during a form submission. Common use cases include:

  • Looking up a specific record in an external system

  • Performing a calculation and returning the result

  • Calling an AI service for a risk score or recommendation

  • Triggering an action in an external system

What are the constraints for Webhooks?