What this is for

Automation lets another system create agreements in Callgoose CORE Agreements for you. When that system posts an event to an inbound webhook (for example, a recruitment system saying an offer was accepted), a matching rule drafts the agreement from a template, fills in its variables and signers from the event, and can send it straight away.

Before you start

Set up an inbound webhook for CORE Agreements under System admin > API Integrations > Inbound Webhooks (see Integrations). It gives your other system an address and a signing secret. The sending system names each event in an X-Webhook-Event header and puts the event's details in a data object; your rule reads values from there.

You also need a published template. See Create and publish templates.

Create a rule

  1. Open Automation and choose New rule.
  2. Enter a Rule name and choose the Template.
  3. Enter the Trigger event: the event name the sending system uses, for example hr.offer_accepted.
  4. Optionally enter a Source label (optional) to accept the event only from one webhook. Leave it blank to accept it from any.
  5. Enter the Agreement title. Use {{payload.path}} to insert values from the event, for example Offer Letter for {{candidate.full_name}}.
  6. Under field mapping, give each template placeholder a value: a dot path into the event (such as candidate.email), or a fixed value starting with lit: (such as lit:Bangalore, India).
  7. Under signers, set each signer's Role, Name (spec) and Email (spec) the same way. Add signer adds more.
  8. Decide whether to switch on Auto-send (issue signing links immediately). If you do, set the Link expiry (days).
  9. Leave Enabled on, and choose Create rule.

Rules are listed with the event, the template and the action: Draft only or Draft + auto-send. Use Edit or Delete to change or remove one. A rule switched off shows Disabled.

Check what happened

Recent runs lists each time a rule fired: when, which rule, the source event reference, the result and the agreement it created. Results are:

  • created: a draft was made and is waiting for you under Agreements.
  • sent: the draft was made and sent.
  • skipped: the same event had already been processed, so nothing new was made.
  • failed: nothing was made; the message says why (for example, a signer email that did not resolve from the event).

Good to know

  • Each event must carry a unique reference. A repeated event with the same reference is skipped, so a retry never creates a duplicate. An event that failed can be retried.
  • Every signer needs an email that resolves from the event, otherwise the run fails.
  • With Auto-send on, signing links go to the addresses taken from the event with no human check. Double-check the signer email mapping first.
  • Link expiry (days) must be between 1 and 30.
  • Only enabled rules fire. The webhook refuses events that are not signed with its secret or are more than five minutes old.
  • Creating, editing and deleting rules needs permission to edit Agreements settings.