Automate busywork with rules and webhooks

Updated

Who it is for
Owners and admins who want the follow-up to happen without anyone remembering it.
What you will have at the end
A rule that runs on its own, tried first on your real records, and optionally a web address another app can post to.

Before you start

  • Owners and Admins build rules. A new rule is off until you switch it on.
  • Describing a rule in words needs the Business plan (a trial has it) and the assistant switched on in Settings › Assistant.
  • A rule stops after running three times an hour on the same record, to prevent loops.
  • A webhook address takes a JSON body up to 64 KB, at most 120 a minute.

Steps

  1. 1. Start a rule

    Open Settings › Automation. Under New rule, give it a Name, such as Thank-you task when a job is won.

  2. 2. Or describe it in words

    Above the editor, type the rule under Describe the rule, such as when a web-form lead isn't called in 2 hours, assign it to the Dispatch team and notify the manager, and choose Fill in the rule. The assistant fills in the editor below: the trigger (here, 2 hours after Created), the conditions and the actions. Nothing is saved, and the rule stays off until you switch it on.

    Check every part and change what you like. Teams, stages and sequences must already exist; if the assistant can't find one, it says which.

  3. 3. Choose what starts it

    Under When, pick the kind of record, then what happens to it: is created, is changed in any way, has a field change, enters a stage (deals), gets a call, text, note or meeting logged, texts the business, fills in a web form, reaches a date, is checked on a schedule (each one that matches) or comes in by webhook (found or created from its data). Add conditions to narrow it. A date with a time of day, such as Created, also takes hours: 2 hours after it came in.

  4. 4. Choose what it does

    Add actions: Create a task, Notify someone, Assign to someone, Change a field, Add a tag, Send a text, Send an email, Call a webhook, Create a deal, Convert the lead or Add to a sequence. Use merge fields such as {{name}} in the text.

  5. 5. Save, try it, then switch it on

    Choose Create rule (off until you switch it on). On the rule's page, choose Which records match now? to see how many of your records match today and what the rule would do, without changing anything.

    When you are happy, choose Switch on. The page's Recent runs list shows each run as Ran, Failed or Didn't match.

  6. 6. Trigger a rule from another app

    Pick comes in by webhook (found or created from its data) as the start. Say where the email and phone sit in the JSON with Email is at and Phone is at, using a path such as customer.email. For leads, tick If no lead has that email or phone, create one.

    After saving, open the rule and choose Make the address. Copy it now; it is shown once. Anything with the address can post to the rule, so keep it like a password. Send a POST with a JSON object as the body.

    To check who is posting, choose Generate a signing secret: the sender signs each body with HMAC-SHA256 and sends it in the X-Dealnera-Signature header, and unsigned posts are refused. The Deliveries list shows each post as accepted or refused, with the reason.

If something goes wrong

“Stopped (ran 3 times this hour)”
The rule changed the same record that triggers it. Narrow its conditions.
“Refused: wrong signature”
The sender signs with a different secret. Copy the secret again from the rule's page.
“Refused: not JSON”
Send the body as a JSON object with the header Content-Type: application/json.
“Accepted, no lead or contact to run on”
The body had no email or phone that matches a record. For leads, tick the box that creates one.

Still stuck? See Support to reach us.