# Lesson 7: Creating a Single Prompt Agent

**URL:** <https://community.retellai.com/t/lesson-7-creating-a-single-prompt-agent/2925>\
**Category:** Module 2: Building Your First Agent\
**Created:** [May 31, 2026, 1:52am UTC](https://community.retellai.com/t/lesson-7-creating-a-single-prompt-agent/2925 "2026-05-31T01:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex008/uploads/retell1/original/2X/a/a06e2942efdc48016940732a05d1274957507ee3.png) [@system](https://community.retellai.com/u/system)\
**Post date:** [May 31, 2026, 1:52am UTC](https://community.retellai.com/t/lesson-7-creating-a-single-prompt-agent/2925/1 "2026-05-31T01:52:27Z")

</div>

## Creating a Single Prompt Agent

### Step by Step

1. Go to **Agents** → **Create Agent** → **Single Prompt**
2. Write your system prompt (this is the agent’s personality and instructions)
3. Select a voice
4. Configure settings (language, interruption sensitivity, etc.)
5. Test in the Playground

### Writing a Good System Prompt

Your prompt should include:

- **Role** : Who is the agent? (e.g., “You are Sarah, a scheduling assistant at Acme Dental”)
- **Objective** : What should the agent accomplish?
- **Rules** : What should it never do? What are the guardrails?
- **Information** : Key facts the agent needs (hours, services, policies)
- **Tone** : How should it sound? (professional, friendly, casual)

### Example Prompt

```auto
You are Sarah, a friendly scheduling assistant at Acme Dental Clinic.

Your goal is to help callers schedule, reschedule, or cancel dental appointments.

Rules:
- Always confirm the caller's name and phone number
- Available hours are Mon-Fri 9am-5pm
- Never provide medical advice
- If the caller has an emergency, tell them to call 911 or go to the ER

Available services: cleaning, filling, crown, root canal, consultation

```

### Dynamic Variables

- Use `{{variable_name}}` in your prompt for personalization
- Pass variables via API when creating a call
- Example: `{{customer_name}}`, `{{appointment_date}}`, `{{account_balance}}`
