RelayActions

StandaloneCollectAction

View as MarkdownOpen in Claude

Returned from call.collect(). Tracks a standalone input collection (without an accompanying play prompt). Terminal states: finished, error, no_input, no_match.

Inherits all properties and methods from the base Action interface (control_id, is_done, completed, result, wait()).

Properties

No additional properties beyond the base Action interface.

Methods

Example

from signalwire.relay import RelayClient
client = RelayClient(
project="your-project-id",
token="your-api-token",
contexts=["default"],
)
@client.on_call
async def handle_call(call):
await call.answer()
action = await call.collect(
speech={"end_silence_timeout": 2.0},
initial_timeout=10.0,
start_input_timers=False,
)
event = await action.wait()
result = event.params.get("result", {})
client.run()