> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

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

# Scripts and prompts

The script is what your agent says and how the call flows. Where you edit it depends on how the job is built: jobs with a workflow view use the workflow builder (see [The workflow builder](/v2/jobs/workflow-builder)); jobs without one have a **Script** tab. Both are covered below.

## Edit the greeting and instructions in the workflow builder

1. Select your department in the sidebar, then select the job in its **Jobs** list. Or ask Chief to make the change for you.
2. Select the **Workflow view** tab.
3. Select the **Inbound Call** step. On its **Start** tab, set **Phone number**: the number this job answers. On its **Agent** tab, set:
   * **Who speaks first**: **The agent** or **The caller**. Choose **The caller** if you want the agent to wait for the caller to speak.
   * **Greeting**: the first thing the agent says. Example: "Thank you for calling, how can I help?"
4. Select the **Talk** step. Write the goal in **Instructions** ("Describe the goal and how the agent should branch."). Add **Collect** or **Collect & Branch** steps to gather details such as the caller's name or reason for calling, and to take different routes based on the answers.
5. Choose how each piece of text is delivered with the toggle beside it:
   * **Word for word**: the agent says exactly what you wrote. Use it for greetings, legal lines and anything you have approved.
   * **In its own words**: the agent treats what you wrote as a brief and says it naturally.
6. A call flow ends with an **End Call** step ("Say goodbye and hang up.").

If a step has a problem, the switch in the job's header says "Fix N issues in the Workflow view tab before activating" and the test button says "Fix N issues in the Workflow view tab before testing". Fix the flagged steps to clear them.

### What the Reception templates start with

|          | Daytime Receptionist                                    | After-Hours Receptionist                                                |
| -------- | ------------------------------------------------------- | ----------------------------------------------------------------------- |
| Greeting | "Thanks for calling. How can I help you today?"         | "Thanks for calling. We're closed right now, but I can still help you." |
| Tone     | Warm and unhurried                                      | Warm and reassuring                                                     |
| Goodbye  | Thanks the caller, says someone will follow up if asked | Says the team will follow up when the office opens                      |

Both answer from what the agent knows about your business, then check whether the caller's question is answered.

## Edit the script on the Script tab

Jobs without a workflow view have a **Script** tab with three parts:

* **Script**: what the agent says and how the call flows.
* **Initial Message**: the agent's first line. **Who Speaks First** can be **Agent speaks first**, **Agent waits for user** or **AI-generated opener**.
* **Notes**: private reminders. The agent never reads these aloud.

Select **Generate with AI** to have Atlas draft a script from your goal and knowledge. Select **Modify with AI** and describe the change; everything else stays as it is. Or choose **Write from scratch**. Each script field links to a **Formatting guide**.

If **Initial Message** shows a padlock, your administrators set the field and it can't be changed once the job is live. Select the padlock to see why.

## Format a script

These rules come from the formatting guide Atlas uses to draft scripts.

| Rule                | How                                                                                                                    |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Exact lines         | Start the line with `~` and put it in quotes: `~ "Thanks for calling Emma's Dental."` The agent says it word for word. |
| Wait for the caller | Add `*Wait for prospect's response*` after each question.                                                              |
| Branches            | `[BRANCH: If caller says X]` then the reply. Make every branch lead somewhere.                                         |
| Numbers             | Write them as words: "fifty percent", not "50%".                                                                       |
| Length              | Keep each line under about two hundred characters. Split long ones.                                                    |
| Sections            | Use clear headings such as Greeting, Discovery and Closing.                                                            |

Write how people talk. Use contractions. Plain text or markdown both work. Keep spacing and section breaks consistent. Use `~` as the only special marker.

A script usually has these sections: Initial Greeting, Qualification, Discovery, Value Proposition, Call-to-Action and Closing. Example:

```
## INITIAL GREETING
~ "Hi, this is Sarah from Emma's Dental. How's your day going?"
*Wait for prospect's response*

[BRANCH: If positive response]
~ "That's great to hear! I'm calling because..."

[BRANCH: If negative response]
~ "I hear you. I'll keep this brief. I'm calling because..."

## TRANSFER PROTOCOL
~ "I'm going to connect you with our team. Please stay on the line."
*Initiate transfer to department X*
```

Handle likely objections the same way: `[If prospect says "too expensive"]`, then the reply you want.

Check a script before you use it:

1. Read it aloud. Does it sound natural?
2. Does every branch lead somewhere?
3. Is every line you need word for word marked with `~` and quotes?
4. Are numbers written as words?
5. Does every question have a wait point, and every major objection a reply?

### Variables

Use these placeholders in a script. Atlas fills them in on the call.

| Variable                                        | Fills in                                |
| ----------------------------------------------- | --------------------------------------- |
| `{{agentName}}`                                 | The agent's name                        |
| `{{companyName}}`                               | Your company name                       |
| `{{industry}}`                                  | Your industry                           |
| `{{firstName}}`, `{{lastName}}`, `{{fullName}}` | The contact's name, when Atlas knows it |

On outbound calls the names come from your contact list. On inbound calls they fill only when [call enrichment](/v2/jobs/enrich-and-route-calls) finds the caller. In a browser test, `{{firstName}}` is your own first name.

Extra columns in your contact CSV become variables too: a column called `appointmentDate` is `{{appointmentDate}}`. See [Contacts and outbound calling](/v2/jobs/answer-calls/contacts-and-outbound-calling#give-the-agent-details-about-each-person).

## Advanced options

On a job's **Script** tab, select **Advanced Options** ("Fine-tune voicemail, end-of-call and analysis behavior for this agent.").

* **End Call Message**: what the agent says before hanging up. Leave it blank and the agent says goodbye in the caller's language.
* **Idle Messages**: lines like "Are you still there?" that play when the caller goes quiet.
* **Prompt for call summary**: leave it blank for an automatic summary. Write your own if you want the summary in a set shape, such as question and answer pairs.
* **Voicemail Message**: used on outbound calls only. See [When voicemail answers](#when-voicemail-answers).

Some jobs show timing fields in the **Agent** tab, under **Voice behavior**:

* **Idle timeout (seconds)**: how long the caller is silent before an idle message plays. Default 7.5. Idle messages play up to 3 times per call.
* **Silence timeout (seconds)**: how long the caller is silent before the agent says the end-call message and hangs up. Keep it higher than the idle timeout.

Leave a field blank to inherit the template's value. Jobs built in the workflow builder use Atlas's own timing, and the builder hides these two fields.

### When voicemail answers

On an outbound job, **When voicemail is reached** decides what the agent does if it lands in a voicemail box. Pick one:

| Option                             | What happens                                                                                   |
| ---------------------------------- | ---------------------------------------------------------------------------------------------- |
| **Hang up**                        | Ends the call and leaves nothing.                                                              |
| **Leave a spoken message** (beta)  | The agent reads your message aloud. It works out that it reached voicemail from what it hears. |
| **Detect voicemail automatically** | More reliable detection. Leave typed text or a recorded audio clip.                            |

Voicemail greetings vary a lot, so Atlas can't always tell when voicemail has started. Messages are left on a best-efforts basis. For the most consistent results, hang up once voicemail is reached.

With **Detect voicemail automatically**, choose **Spoken text** or **Audio clip**. For a clip, pick one you uploaded (**Upload audio file**: .mp3 or .wav, up to 10 MB and 60 seconds), or select **Paste a link instead** and paste a hosted https\:// link to a .wav or .mp3 file. The agent stays quiet and plays the recording. Any other link is rejected. If your initial message is too long for voicemail detection, the field tells you.

## Troubleshooting

If the switch or test button says "Fix N issues", then open the **Workflow view** tab and fix the flagged steps.

If **Initial Message** shows a padlock, then your administrators set it. Select the padlock to see why.

If a voicemail audio link is rejected, then use a hosted `https://` link to a .wav or .mp3 file, or upload the file.

If you can't find **Idle timeout (seconds)** or **Silence timeout (seconds)**, then the job was built in the workflow builder. It uses Atlas's own timing.

If the agent reads a number as digits ("50%"), then write it as words in the script: "fifty percent".

## Tips

* Start with the defaults and test. See [Testing your agent](/v2/jobs/answer-calls/testing-your-agent).
* Put prices, hours and policies in your knowledge, not the script. See [Give Atlas your business knowledge](/v2/chief/give-atlas-your-business-knowledge).
* Add a transfer for anything the agent shouldn't handle. See [Call forwarding and transfer](/v2/jobs/answer-calls/call-forwarding-and-transfer).
* Set direction for a whole department in [Set direction and instructions](/v2/chief/set-direction-and-instructions).