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

# Action chaining

> Multi-step workflows with on_success

* Link actions with **on success** to run the next action automatically
* Each action remains independently testable
* The planner sequences steps across conversation turns when needed

## How chaining works

```mermaid theme={null}
flowchart LR
    A[search_records] -->|on_success| B[show_results]
    B -->|on_success| C[submit_selection]
```

When `search_records` completes successfully, the runtime can invoke `show_results` with mapped output from the first call.

## Configure a chain

<Steps>
  <Step title="Create each action from a skill">
    Create `search`, `display`, and `submit` actions with clear individual descriptions. Each comes from a [skill's](/user-guides/agent-management/skills) webhook step.
  </Step>

  <Step title="Set on_success">
    On the first action, set **on success** to the next action's name.
  </Step>

  <Step title="Map output to input">
    Use response mapping so the second action receives IDs or fields from the first response.
  </Step>

  <Step title="Test end-to-end in Playground">
    Run a full user journey: search, select, confirm.
  </Step>
</Steps>

## Example flow

1. **search\_availability**: GET slots by date
2. **show\_slots**: render picker UI from results
3. **create\_booking**: POST booking after user selects a slot

<CardGroup cols={2}>
  <Card title="Skills" icon="wand-magic-sparkles" href="/user-guides/agent-management/skills">
    Where actions are created and configured.
  </Card>

  <Card title="Bookings recipe" icon="calendar" href="/user-guides/recipes/bookings">
    End-to-end booking walkthrough.
  </Card>
</CardGroup>
