All guides
Automations, recipes, and agents

Automations, recipes, and agents

~5 min read

Automations in Closr are recipes: a trigger plus an action. From chat you get one trigger and one action; the Settings → Automations editor can add more conditions and actions. The fastest way to make one is to describe it in chat. "When a lead replies, text me." "When a deal closes, tag the contact 'past client'." "When a lead goes quiet for 30 days, let me know." Closr picks up the trigger, picks up the actions, surfaces the rule as a card for you to confirm, and writes it when you say go.

There's also a Settings → Automations page if you want to see them all in a list, toggle them on and off, or audit firing history.

Rules and workflows that message clients start off. Closr never turns one on for you. When you ask in chat, it shows what will send and to whom, and waits for your tap. Nothing goes out until you tap.

Building a rule from chat

Open any chat thread. Say what you want. The grammar Closr listens for is loose, but the underlying shape is always trigger + action:

"When a lead moves to Showing, text me."

Closr responds with an automation card showing:

  • •Trigger: LEAD_STAGE_CHANGED with filter stageName = Showing
  • •Action: NOTIFY_AGENT with a short message

Tap "Turn it on" and it's active. Ask for a change if you want to tighten the filter or swap the action. Nothing fires until you turn it on.

Triggers

These are the triggers that fire today:

  • •`LEAD_CREATED`: a new lead lands from any source (website, FB, Realtor.ca, Zillow.ca, API, manual)
  • •`LEAD_STAGE_CHANGED`: a lead moves columns on the pipeline kanban (only fires on actual stage transitions, not on every tag/value edit). Filter by stage name.
  • •`LEAD_WON`: a deal flips to WON
  • •`LEAD_LOST`: a deal flips to LOST
  • •`DEAL_CLOSED`: a deal closes
  • •`DEAL_STAGE_CHANGED`: a deal changes stage (for example, it goes Firm). Filter by stage name.
  • •`EMAIL_REPLIED`: an inbound email lands from a contact you've previously emailed. It also fires for auto-replies and out-of-office mail on threads you started.
  • •`EMAIL_OPENED`: the first time a contact opens each email you sent through Closr, once per email
  • •`SMS_RECEIVED`: an inbound SMS lands on your Closr number
  • •`CALL_COMPLETED`: a call ends with a post-call summary
  • •`CAMPAIGN_COMPLETED`: a contact finishes every step of a campaign
  • •`DAYS_SINCE_CONTACT`: an ACTIVE lead goes N days without contact. Checked once a day, for leads you have contacted at least once. It fires when a lead's quiet spell reaches N days. A lead that had already been quiet N days when you saved or turned on the rule does not fire.

Page-view rules are not available yet. Ask chat "who has been on my site?" to see recent visitors.

Conditions narrow a trigger. "When a lead is created and source equals Facebook". The condition operators are equals, contains, greater_than, less_than, is_empty, is_not_empty. Multiple conditions AND together by default; flip to OR per row.

Actions

The engine runs all of these:

  • •`MOVE_STAGE`: move the lead to a specific pipeline stage. Configure with stageId.
  • •`ADD_TAG`: append a tag to the lead. Configure with tag.
  • •`NOTIFY_AGENT`: send a push + in-app notification to you (or the assigned agent). Configure with message. This is what "text me" and "let me know" mean.
  • •`ENROLL_CAMPAIGN`: enroll the lead in a campaign. Leads already enrolled are skipped. Optionally stops their other campaigns.
  • •`STOP_CAMPAIGNS`: stop the lead's active campaigns, or only the ones you name.
  • •`SEND_EMAIL` and `SEND_SMS`: message the LEAD who triggered the rule, right away, once per lead per rule. Unsubscribes and opt-outs still apply.
  • •`ASSIGN_AGENT`: assign the lead to a team member and notify them.
  • •`CREATE_TASK`: add a task to the assigned agent's daily brief.
  • •`START_DEAL_WORKFLOW`: start a deal workflow. Deal triggers only.

A rule that runs when someone texts or emails you can't text them, email them or start a campaign for them, because that would answer them automatically. Use NOTIFY_AGENT to hear about it and reply yourself. On text, email and call triggers, tag, stage, stop-campaigns, assign and task actions work on the contact's open lead, and the rule logs an error if there is none.

Closr's AI agents

Separate from rule-based automations, Closr ships three first-class AI teammates that act like users. They appear in @mention pickers and assignee dropdowns alongside your human teammates. You hand them work the same way you hand work to a real person.

  • •`@research`: Closr Research. Pulls comparable sales, market context, neighbourhood data, and recent activity on contacts or deals. Best when you say "research this contact" or "what's the market doing in Etobicoke".
  • •`@recap`: Closr Recap. Summarizes a conversation or deal thread into 3-5 bullets: what happened, what's outstanding, what's next. Best when a thread has gotten long and you need the state-of-play.
  • •`@outreach`: Closr Outreach. Drafts follow-up emails and SMS in your voice, anchored to the most recent thing on the deal. Best when you don't want to think about how to phrase the next message.

Mention any of them in chat (@research check on 142 Eastern). They run in the same thread, post their output as a normal message, and respect their own tool whitelist so they can't reach beyond their role.

Recipes (saved prompts)

A recipe is a saved prompt you can rerun without retyping. Slash menu in chat + Cmd+K palette both surface them. Closr seeds a default library on first chat:

  • •/recap-deal: recap the deal in this thread
  • •/draft-follow-up: draft a follow-up email to the linked contact
  • •/summarize-showings: pull showing feedback into a one-page summary
  • •/check-conditions: list outstanding conditions + deadlines on the deal
  • •/comps-nearby: pull comparable solds near the deal's property
  • •/draft-listing-blurb: write the MLS public-remarks paragraph from a listing

Add your own under Settings → Recipes. Each recipe is title + prompt + optional description + a showInPalette flag. Mustache tokens like {{contact.firstName}} resolve at run-time.

Inline AI (Cmd+J)

In any note or comment textarea (the activity log form on contact and lead detail pages), press Cmd+J to open a small AI prompt. Type what you want ("rewrite this in two sentences", "draft a polite reminder for the seller about the condition deadline") and the result streams in below the textarea. Accept, edit, or dismiss. Doesn't replace your text; you paste it in yourself.

The daily digest

Closr emails you a once-a-day digest at the same hour as the morning brief. It rolls up the last 24 hours: deals that advanced, conditions that went overdue, comms waiting on a reply, new leads, eSign envelopes awaiting signature. If everything's empty, no email goes out (silence beats noise). Toggle it off under Settings → Profile if you prefer the in-app brief alone.

Rules toggle on and off via the Settings → Automations list. If something stops firing unexpectedly, check there first; an accidental disable is the most common cause.

Where to go next

  • •lead-intake: wire the source events that fire LEAD_CREATED
  • •campaigns: the enrollment target for "drip these new leads" automations
  • •web-tracker-install: install the tracker to see who is visiting
  • •cmd-k: where recipes show up alongside global search