
# Instructions, Goals and Scheduled Prompts

The **Agent Instructions** field is the agent. Everything else on the form —
voice, timing, tools — decides how it sounds and what it can reach; the
instructions decide what it does. This article covers what goes in that field,
the placeholders that fill themselves in at call time, what `Goals` is
actually for, and how to schedule text that applies only for a week.

Everything here is on the **Conversation** tab (**Instructions & Greeting**
and **Temporary instructions**) and the **Tools** tab's **Optional Prompt
Components** card.

## What you'll need

- The **`agents:voice:manage`** permission.
- A saved voice agent — see [Create a Voice Agent](/help/voice-agents/creating-campaigns).
  Scheduled prompts in particular need the agent to exist before you can add
  one.

## Your instructions are not the whole prompt

What the model receives on a call is assembled in a fixed order, and your
field is one layer of it:

```mermaid
flowchart TB
    A["Platform rules<br/>(Karmaflow.ai, every voice agent)"] --> B["Your workspace's<br/>prompt components"]
    B --> C["<b>Agent Instructions</b><br/>(this field)"]
    C --> D["Workspace append components<br/>+ transfer cascade + knowledge rules"]
    D --> E["Final platform gate<br/>(checked last, every turn)"]
```

Two consequences worth knowing before you write:

- **You do not have to re-state the basics.** Not inventing facts, not
  reading markup aloud, how to close a call cleanly, how to behave around a
  transfer — the platform layers cover that, on every voice agent, and they
  are enforced after your text, not before it.
- **You cannot instruct your way past them.** An instruction that contradicts
  a platform rule loses. Write what your business needs; leave the guardrails
  alone.

Your workspace's own components — shared text you want on several agents
rather than copy-pasted into each — are created by a tenant admin at
**Settings (the gear icon) → Agents & AI → Prompt Components**, and
switched on per agent under **Tools → Optional Prompt Components**. System
components are always included and are not listed there.

## Write the instructions

1. Open the agent and go to the **Conversation** tab.
2. In **Instructions & Greeting**, type into **Agent Instructions**. The field
   counts characters and gives a rough token estimate underneath — useful,
   because a long prompt costs time before the first word is spoken.
3. Cover, roughly in this order:
   - **Who the agent is** — name, the business it represents, its role.
   - **Why this call is happening** — and, for outbound, that the caller did
     not ask for it.
   - **What it should do first**, and what a finished call looks like.
   - **Facts it needs** that are not in your knowledge base — hours, pricing
     bands, service area, policies.
   - **Boundaries** — what it must not promise, quote, or discuss, and what
     should go to a human instead.
   - **When to transfer**, in the same words you used for your forwarding
     conditions (see [Transfers, Forwarding and the Duty Roster](/help/voice-agents/transfers-and-escalation)).

Two shortcuts sit in the card header:

- **Support line example** and **Outbound follow-up example** load a
  complete, opinionated starting prompt, already personalised with your
  organisation name. It replaces what is in the field, so it asks first if you
  have typed something.
- **Build with AI** drafts one from a description of the job. Once the field
  has content the same button reads **Optimize with AI** and works on what is
  there instead of replacing it.

### Voice-specific advice

- **Short turns.** A caller cannot skim. Say one thing, then stop.
- **Say the number, don't spell the format.** Instruct it to read prices,
  dates and phone numbers the way a person would say them out loud.
- **Name the single next step** at the end of every branch — "I'll text you
  the link now" beats "let me know if you need anything else".
- **Do not write emotion markup into the instructions.** The platform rules
  forbid the agent emitting delivery tags mid-call, and they are stripped. Tone
  belongs in **Speaking style** on the Voice tab (for OpenAI and Gemini
  voices, and Gemini Live models) or in the **Static Greeting**, which is the
  one place tags are authored deliberately.

## Placeholders that fill in at call time

Write `{{key}}` in your instructions or greeting and the agent gets its value
for this call. Always available:

| Placeholder | Filled with |
|---|---|
| `{{first_name}}` | The resolved contact's first name — empty if the caller is unknown |
| `{{last_name}}` | The resolved contact's last name |
| `{{caller_number}}` | The number at the other end of the call |
| `{{current_time}}` | Today's date and time in your workspace time zone |

Also available, depending on how the call started:

- **Outbound calls** carry the trigger's own fields — the form submission or
  journey context that caused the call — as placeholders under their own
  names.
- **Calls through a PBX** carry whatever you mapped in the **Phone System
  Integration** card on the **Call handling** tab, under the placeholder keys you chose there. See
  [Phone System Integration](/help/voice-agents/phone-system-integration).

**Where the value goes depends on the field.**

- **In the instructions**, a placeholder stays exactly as you wrote it. The
  values arrive in one short block at the end of the prompt, after the
  platform's rules, titled *Values for this call*, and the agent reads each
  `{{key}}` as the value given there. Your instructions are then the same
  text on every call, which lets the AI provider reuse them from its cache
  and answer sooner.
- **In the Static Greeting** (and the voicemail script), the value is
  replaced in place, because those lines are spoken word for word.

Names match exactly or ignoring case, so `{{First_Name}}` works too. A hyphen
is not read as an underscore: `{{first-name}}` is not filled, and the form
warns you under the instructions box.

**A placeholder nobody provides is left on the page as written.** If a caller
is unknown, `{{first_name}}` has no value: in the instructions the agent is
told it was not provided, and in the greeting it resolves to an empty string —
so write `Hi {{first_name}}` and an unknown caller hears "Hi". Guard it in the
instructions ("if you do not have their name, do not guess it") rather than
relying on the greeting.

## Goals

**Goals** sits directly under the instructions and does something different
from everything around it: **it is not sent to the model.** It is the list the
performance dashboard scores completed calls against, which is where
goal-attainment numbers on the agent's performance page come from.

Write one outcome per line, each one observable in a transcript:

```
Book a demo call
Collect the caller's email
Resolve without escalation
```

If you also want the agent to *pursue* a goal, say so in the instructions as
well. Putting it only in **Goals** measures without asking.

## The Static Greeting

**Static Greeting** is spoken verbatim as the agent's first turn — no
paraphrase, no variation. It only plays when **Who speaks first**, right
above it in the **Opening** group, is set to **The agent speaks first**; the
default, **The caller speaks first**, waits for the caller to speak. Full detail in
[Voices, Greetings and Pronunciation](/help/voice-agents/voices-and-speech).

## Scheduled changes (the Temporary instructions card)

The card was called **Limited Time Prompts** until November 2026. It holds
changes that have a start and an end, so you do not edit the main instructions
twice and remember to undo it. A voice agent has two kinds:

| Kind | What it does | Use it for |
|---|---|---|
| **Extra instruction** | Adds your text to the agent's instructions while its window is open | A promotion, a holiday closure, "we are moving offices on the 14th" |
| **Maintenance** | Switches off the tools you choose, and gives the agent a notice it reads before its own instructions | A booking or dispatch system that is down for a day: the agent stops taking requests it cannot process, says so, and offers what you tell it to |

A change applies to the live agent the moment it starts. You do not push the
agent live for it, and ending it needs no push either. Adding, editing or ending
one needs the permission to manage voice agents; seeing them needs the
permission to view voice agents.

### Start maintenance quickly

When a system the agent depends on goes down, there are two ways straight to
the dialog with **Maintenance** already chosen:

- On the agent's page, the **Maintenance** button at the top, beside
  **Back to List**.
- On **Agents → Agent Types → Voice Agents**, the agent's **⋯** menu →
  **Maintenance…**

Both need the permission to manage voice agents. **Starts** is already set to
now, so tick the tools, write the notice and press **Start maintenance**.

### Add a change

1. On the **Conversation** tab, find **Temporary instructions** and click **Add**.
2. Under **What changes**, choose **Extra instruction** or **Maintenance**.
3. Fill in the dialog, top to bottom:
   - **Tools to switch off** (Maintenance only): the agent's own tools, named
     as on its **Tools** tab and grouped by connector; hover a tool for what it
     does. Tick a group to switch off every tool in it. The tools stay ticked on
     the **Tools** tab and come back when the window ends. Ending a call and
     recording an opt-out cannot be switched off.
   - **Instruction** or **Maintenance notice**: what the agent should say or do.
     For maintenance, say what is unavailable and what to offer instead. A
     notice is optional when you only want tools off.
   - **What the agent will read** (Maintenance only): the exact text the agent
     is given, our lines about the window and the tools first, then your notice.
   - **Starts** (set to now) and **Ends**. Tick **No end: until I end it** when
     you do not know how long it will last.
   - **Name** (optional): how the row is labelled, e.g. "Dispatch system
     upgrade".
4. Check the line at the bottom of the dialog, which says when the change starts and ends,
   then press the button beside it. It says what will happen: **Apply now** or
   **Schedule instruction**, **Start maintenance** or **Schedule maintenance**. The button
   and that line stay in view however long the dialog is; on a phone the dialog opens
   from the bottom of the screen.
   The row appears under **Active**, **Scheduled** or **Past**, with the counts
   in the tab labels.

![The New temporary change dialog on a voice agent: Maintenance chosen, the four Workiz tools switched off, a notice telling the agent to take the caller's details for a call back, and the text the agent will read.](/help/assets/voice-agents/temporary-change-maintenance-dialog.png)

Times are in your workspace's time zone, and each row says how long until it
starts or ends. **End now** on an active row ends it at once, and the line that
confirms it has **Undo** for a few seconds. To pause a change without ending it,
open it with the pencil and untick **Active**; a paused row reads **Paused**.

### Where the text goes

- **An extra instruction** is added after your **Agent Instructions**. You do
  not place it: the platform puts it where the agent reads it reliably and the
  rest of the prompt can still be reused from the AI provider's cache.
- **A maintenance notice** goes above your instructions, right after the
  platform's own rules, with a line telling the agent the window's end time and
  which tools are unavailable. Where the notice and your instructions differ,
  the notice wins. Your instructions are otherwise unchanged.

### What you see while one is in effect

- A line at the top of the agent's form: "Maintenance is in effect until …: 3
  tools off."
- The row carries a **Maintenance** chip and the number of tools off.

![The Temporary instructions card with two changes in effect: a promotion and a maintenance window with four tools off. The line at the top says when the maintenance ends, and each row has End now.](/help/assets/voice-agents/temporary-changes-active.png)
- A call that starts inside the window does not have the switched-off tools at
  all. A call already in progress when the window starts keeps the tools it
  began with: tools that run on the platform's servers (calendar, Workiz and
  similar) are refused from then on and the agent is told why, while the call's
  own actions, such as sending a text or transferring, stay available until
  that call ends. Start the window a few minutes early if that matters.

Several changes can be active at once, and they all apply: their texts are
joined in start order and their switched-off tools are combined. Keep them
short and non-contradictory.

The same card is on chat, SMS and task agents, on their **Conversation** tab. A
website chat agent has a third kind, **Agent off**, which hides the chat widget
for the window ([Creating a Chat Agent](/help/chat-agents/creating-agents#scheduled-changes)).

## Troubleshooting

- **The agent ignores something I wrote.** Check it does not contradict a
  platform rule (inventing facts, emitting markup, refusing to end a call);
  those win. Otherwise the usual cause is length — a rule buried in a
  2,000-word prompt competes with everything around it. Cut, or move it into
  the section the agent reads at decision time.
- **A temporary instruction is "Active" but the agent never mentions it.** Check
  that the row is not **Paused**, and that the text does not contradict your main
  instructions: the agent reads both.
- **The agent still used a tool during maintenance.** Open the row and check the
  tool is ticked under **Tools to switch off**, and that the window had started
  when the call began.
- **`{{first_name}}` comes out blank.** The caller was not resolved to a
  contact. That is correct behaviour, not a bug — the alternative is the agent
  guessing a name.
- **A placeholder appears literally in the transcript**, braces and all.
  Nothing provided that key on that call. Check the spelling against the
  mapping in the **Call handling** tab's **Phone system** card, or against the outbound trigger's field
  names.
- **Edits made no difference to a live call.** Instructions are saved to the
  draft. Use **Save & Push Live** — see
  [Testing, Drafts and Going Live](/help/voice-agents/testing-and-promotion).

## Next steps

- [Voices, Greetings and Pronunciation](/help/voice-agents/voices-and-speech)
- [Tools, Knowledge and Memory](/help/voice-agents/tools-and-knowledge)
- [Testing, Drafts and Going Live](/help/voice-agents/testing-and-promotion)
- [Tenant Brain](/help/knowledge/overview) — where facts belong instead of the
  prompt
