***

title: set_text
slug: /reference/python/agents/context-builder/step/set-text
description: Set the step's prompt text directly.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-step]: /docs/server-sdks/reference/python/agents/context-builder/step

Set the step's prompt text directly. Cannot be used with `add_section()` or
`add_bullets()`.

<Warning>
  Mixing `set_text()` with `add_section()` or `add_bullets()` raises `ValueError`.
  Use one approach or the other.
</Warning>

## **Parameters**

<ParamField path="text" type="str" required={true} toc={true}>
  Plain-text prompt instructions for this step.
</ParamField>

## **Returns**

[`Step`][ref-step] -- Self for method chaining.

## **Example**

```python {8}
from signalwire import AgentBase

agent = AgentBase(name="my-agent", route="/agent")

contexts = agent.define_contexts()
ctx = contexts.add_context("default")
step = ctx.add_step("greeting")
step.set_text("Welcome the caller and ask how you can help.")

agent.serve()
```