> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.sparkops.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sparkops.com/_mcp/server.

Guardrails are the rules the AI keeps in every conversation: what it must never do, what it does when something comes up, when it hands a conversation to your team, when it closes someone as not a fit, and when it counts them as qualified. You choose what a rule does first, then fill in a short sentence.

**Where:** Setup › Guardrails & takeover for the rules for every campaign. Campaigns › a campaign › Guardrails & takeover for that campaign's own.

**Who can do it:** owners and managers add, change and remove rules. Agents can see them.

## Add a rule for every campaign

1. Go to Setup › Guardrails & takeover.

2. Under **Rules for every campaign**, press **Add a rule**.

3. Under **What should the AI do?**, pick one:

   | Pick                    | Then fill in                                                                                    | Saved as, for example                                                            |
   | ----------------------- | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
   | **Never**               | what the AI never does                                                                          | Never quote a price by text                                                      |
   | **If they…**            | what they do or say, and what the AI does then                                                  | If they ask about financing, the AI says a specialist will call with the options |
   | **Hand to a person**    | what they do or say                                                                             | Hand to a person if they smell gas                                               |
   | **Close as not a fit**  | what they do or say, and the **Reason, as a closed conversation shows it**, up to 80 characters | Close as not a fit if they live outside the area we serve                        |
   | **Qualify the contact** | what they do or say                                                                             | Qualify the contact if they say they're already a customer                       |

4. Check the sentence under **Saves as**, and press **Add rule**.

It applies at once to every campaign, including conversations already running. The rules are listed under a heading for what they do: **Never**, **Hand to a person**, **Close as not a fit**, **Qualify the contact** and **The AI handles it**.

Something the AI should tell people, such as a price, how the service works or who you serve, isn't a rule. Add it to [Knowledge](/setup/knowledge) and the AI answers from it when it comes up.

## Change or remove a rule

1. Press **Edit** beside it, change its sentence or what it does, and press **Save rule**. Any rule can become any of the five kinds.
2. Or press **Remove**. Setup asks **Remove it from every campaign?** first: press **Remove** again, or **Keep it**. Conversations already closed for a rule keep their reason.

## Add a rule to one campaign

1. Open the campaign from Campaigns and choose **Guardrails & takeover**.
2. If you see **Edit a new draft**, press it.
3. Under **Rules for this campaign**, press **Add a rule**, pick what it does, fill in its sentence, and press **Add rule**.
4. Press **Publish changes**. See [Edit, publish and archive](/campaigns/edit-publish-archive).

The rules for every campaign show above, read-only, under **Rules for every campaign**.

## Hand to a person automatically

In a campaign's Guardrails & takeover, **Hand to a person automatically** moves a conversation to your team the moment the contact reaches an outcome. Change it on a draft, as above.

1. Under **When they reach an outcome**, choose **Any outcome**, **Information gathered**, or, when the campaign offers it, **Hard appointment** or **They pick a time for a call (soft appointment)**.
2. Press **Add this rule**. It reads as a sentence, such as **When they reach Information gathered**, and the × beside it removes it.
3. Press **Publish changes**.

The conversation goes to Unassigned for anyone on the team to pick up, and the AI's reply that reached the outcome still goes. A rule on **Hard appointment** fires once your calendar confirms the booking: see [Book appointments by text](/campaigns/booking-by-text). If someone on your team already has the conversation by then, it stays theirs. See [When the AI hands a conversation to you](/inbox/handed-to-you).

## Add opt-out words

1. On a campaign's draft, in Guardrails & takeover, under **Opt-out words**, type a word in **Add a word** (such as NOMORE) and press **Add**.
2. Press **Publish changes**.

A contact who texts one of these, and nothing else, is opted out of every campaign, and SparkOps confirms it by text. See [Opt-outs and landlines](/inbox/opt-outs-and-landlines). If a word can't be used, such as one too short or one that already works, the card says why, and the draft can't be published until it's fixed.

## Good to know

* The AI judges whether a rule has come up from what the contact means, not by matching words: "If they mention a leak" covers "there's water all over the basement". Only opt-out words are matched, and only when the whole text is the word.
* **They ask to talk to a real person, a human or someone from the team.** is built in and always on, under **Built in and always on**, and **Hands to a person**. Asking to be called is different: the AI tells them they can call the number they're texting any time, or keep going by text, and it keeps the conversation. To send call requests to your team instead, add a **Hand to a person** rule: "Hand to a person if they ask for a phone call". See [Calls the AI answers](/calls/calls-the-ai-answers).
* STOP always works. **Stop texting anyone who asks to stop.** is built in and always on: STOP and the other standard words opt someone out, and the AI hears a request to stop in any words.
* Every business also closes someone as not a fit for Not interested, Not ready yet and Bad contact info, marked **Built in and always on**.
* A conversation follows the rules for every campaign and its own campaign's. When two pull different ways, the stricter one wins, and a rule that hands to a person always applies.
* A rule that hands to a person is for what the contact brings up themselves. For an answer to one of the campaign's questions that should go to a person, give the question a condition. See [Questions and conditions](/campaigns/questions-and-conditions).
* **Qualify the contact** records **Qualified · Information gathered** and ends the campaign. The AI keeps the conversation.
* Before the AI's text goes, SparkOps checks it against your **Never** rules. A text that breaks one gets one more try, then goes to a person unsent, and the thread says **Moved to a person: the AI's answer broke a guardrail**.
* A campaign's own rules change when you publish. Conversations already running keep the rules of the version they started on.
* Setup's page lists each campaign's own rules at its foot, under **Each campaign's own rules**.

Still need help? Email [support@sparkops.com](mailto:support@sparkops.com).