set_skip_user_turn

View as MarkdownOpen in Claude

Skip waiting for user input after this step completes. The AI proceeds immediately without waiting for the caller to speak.

Parameters

skip
boolRequired

Whether to skip the user turn.

Returns

Step — Self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="my-agent", route="/agent")
4
5contexts = agent.define_contexts()
6ctx = contexts.add_context("default")
7intro = ctx.add_step("intro")
8intro.set_text("Introduce yourself and immediately begin the intake process.")
9intro.set_skip_user_turn(True)
10ctx.add_step("intake").set_text("Collect the caller's information.")
11
12agent.serve()