> ## Documentation Index
> Fetch the complete documentation index at: https://docs.8call.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Write your agent's scripts

> Set the greeting and conversation guidance your agent uses on every call.

<Info>
  Scripts give your agent its opening line and conversational guidance. The greeting is required for every agent; you can let AI draft it and then edit to match your brand voice.
</Info>

<Steps>
  <Step title="Open the Scripts tab">
    Go to `/agents`, open an agent, then select **Scripts** (`/agents/:id/scripts`).
  </Step>

  <Step title="Write the greeting">
    Enter the **Greeting** — the first thing the agent says when a call connects. Keep it short and natural.

    <Tip>
      Click the **generate** button (the sparkles icon) to draft a greeting from the agent's name, language, personality, and tone, then tweak it.
    </Tip>
  </Step>

  <Step title="Save">
    Save your changes. The greeting is woven into the agent prompt and used on the next call.

    <Check>
      A success toast confirms the script was saved.
    </Check>
  </Step>
</Steps>

## Tips for good scripts

* **Lead with value** — say who's calling and why in the first sentence.
* **Keep it conversational** — the agent reads the greeting aloud, so write how people speak.
* **Pair with FAQs** — for answers to common questions, use the [FAQs](/guides/faqs) page rather than stuffing them into the greeting.

## Troubleshooting

<AccordionGroup>
  <Accordion title="The generate button is disabled">
    Script generation needs the agent's name and at least one language. Set those on the **Overview** tab first.
  </Accordion>

  <Accordion title="My greeting isn't being used">
    Make sure you saved after editing. Greeting changes apply to new calls, not calls already in progress.
  </Accordion>
</AccordionGroup>
