- Documentation
- User Application
- Templates
- Integrations
Webhook connector
A Webhook connector attaches one of the project’s webhooks to the template. Cellosign then calls the webhook for this template’s transactions, when its event happens. A Get data from remote source webhook also sends field values to your service while the recipient fills in the form, and fills fields from the answer.
The webhook’s address, authentication, request and answer are set in the project. This page describes only what you set in the template.
Webhooks you can select
Section titled “Webhooks you can select”The Reference list shows the project’s webhooks, by name, whose type suits the stage:
| Stage | Webhook types | Listed when | Settings in the connector |
|---|---|---|---|
| PRESET | Post notification when a new session created in workflow | Use implicit is off | None |
| LIVE | Get data from remote source | Always, whatever Use implicit is | Triggers and Field Mapping |
| LIVE | Post notification when client logged in to form, Post notification when form loaded on client browser | Use implicit is off | None |
| SUBMIT | Post business process result (Archive), Post notification when form is submitted, Post notification when session is expired, Post notification when session is deleted | Use implicit is off | None |
- Webhooks with Use implicit on, other than Get data from remote source, run for every template. They appear in the connectors list as IMPLICIT. See Implicit connectors.
- Get data from remote source webhooks run only through a LIVE connector, so Use implicit makes no difference for them. On some installations, Template service (deprecated, for compatibility only) webhooks are listed in LIVE in the same way; don’t use them in new templates.
- The other types aren’t selected in templates: Post callback after storage operation, Send SMS, Fetch tabular data from remote source and Authenticate customer through a remote decision service are selected in a storage integration, an SMS integration, a data source and an Auth screen. See Attach a webhook to forms.
- In the connectors list, a webhook connector shows the webhook’s type and address, for example “Post notification when form is submitted to https://hooks.example.com/cellosign”.
When and how each type is called, and what your endpoint receives, is described in Webhooks.
Add a Webhook connector
Section titled “Add a Webhook connector”- On the Integrations tab, click Connectors, and then click the Add button of the stage.
- In Source, select Webhook. In Reference, select the webhook.
- For a Get data from remote source webhook, set the trigger and the field mapping. See below.
- Click Save, and then save the template.
Get data from remote source
Section titled “Get data from remote source”With a Get data from remote source webhook in the LIVE stage, Cellosign sends the mapped field values to your service when the trigger fires, and fills fields with the values in the answer. For the request, the answer, timeouts and errors, see Field change.
Triggers
Section titled “Triggers”Select when the webhook is called. See Triggers. A Trigger Field is required (“Choose a trigger field”).
Field Mapping
Section titled “Field Mapping”Outgoing (Request) (“Maps form fields to aliases sent to the webhook.”) sets the fields whose values are sent. Click Add Mapping for each field:
| Setting | What to enter |
|---|---|
| Form Field | The field whose value is sent, shown with its type. Each field can be used in one row only. Required in each row (“Every outgoing mapping row must have a form field selected”). |
| Alias | The name under which the value is sent. If you leave it empty, the field ID is used. |
Incoming (Response) sets which fields the answer fills:
- With Use Response Mapping off (the default), a value in the answer fills the field that has the same ID.
- With Use Response Mapping on, a value is matched by its alias first, and then by field ID. Click Add Mapping for each value:
| Setting | What to enter |
|---|---|
| Alias | The name of the value in the answer. |
| Form Control | The field to fill with the value. |
- To fill several fields with the same value, add a row for each field with the same alias.
- Each field can be used in one row only.
- If the response mapping of another connector also fills the field, the warning “This field is also targeted by another connector’s response mapping” appears. You can still save.
- When Use Response Mapping is on, add at least one row, and fill in both Alias and Form Control in every row (“Every response mapping row must have both alias and form control filled”). Turning it off removes the rows.
The aliases of Outgoing (Request) aren’t used for the answer. For the matching rules and an example, see Response mapping.