***

title: set_reset_system_prompt
slug: /reference/python/agents/context-builder/step/set-reset-system-prompt
description: Set a new system prompt for context switching from this step.
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 a new system prompt for when this step navigates to another context.

## **Parameters**

<ParamField path="system_prompt" type="str" required={true} toc={true}>
  New system prompt to use during the context switch.
</ParamField>

## **Returns**

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

## **Example**

```python {11}
from signalwire import AgentBase

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

contexts = agent.define_contexts()
ctx = contexts.add_context("default")
ctx.add_step("greet").set_text("Welcome the caller.")
transfer = ctx.add_step("transfer")
transfer.set_text("Transfer the caller to billing.")
transfer.set_valid_contexts(["billing"])
transfer.set_reset_system_prompt(
    "You are now a billing specialist. Help the customer with their invoice."
)
billing = contexts.add_context("billing")
billing.add_step("invoice").set_text("Help with billing inquiries.")

agent.serve()
```