***

title: Run Several Custom Actions
slug: run-several-custom-actions
---------------------

For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.synthflow.ai/llms.txt. For full documentation content, see https://docs.synthflow.ai/llms-full.txt.

In some scenarios, you may want to run a custom action that triggers a second custom action immediately after it. We refer to this as a **back-to-back** action.

Imagine you want to dynamically extract a user's email address from your CRM and then use that email to populate a booking appointment calendar. This requires chaining two actions together.

## Run several custom actions back to back

<Steps>
  <Step title="Create two custom actions">
    Create two custom actions. For a step-by-step guide, see [Create a custom action](/create-a-custom-action).

    1. **Action 1**: extract the user's email from your CRM.
    2. **Action 2**: book an appointment using the extracted email.
  </Step>

  <Step title="Attach both actions to the call flow">
    Assign both actions to the "During Call" phase in your call flow.
  </Step>

  <Step title="Adjust the prompt logic">
    Make sure your AI assistant knows:

    1. Which action to trigger first (in this case, the email extraction)
    2. What data to pass from the first action to the second (e.g., the extracted email address)
  </Step>
</Steps>