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

# Workflows

> Turn your WordApps into workflows using our powerful Zapier integration

<div
  style={{
position: "relative",
paddingBottom: "70.58823529411764%",
height: 0,
}}
>
  <iframe
    src="https://www.loom.com/embed/6b621e86ca23482e882b3c45caa57d1a?sid=10d4491c-23ba-4f61-bfcf-0c787526febe"
    frameborder="0"
    webkitallowfullscreen
    mozallowfullscreen
    allowfullscreen
    style={{
  position: "absolute",
  top: 0,
  left: 0,
  width: "100%",
  height: "100%",
}}
  />
</div>

## Get an API Key

Navigate to the settings page by clicking the user avatar in the top right corner and selecting "API Keys"

<img width="40%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/api/user-avatar.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=eeffc20bfe16730a8576140af3ec69d2" alt="User avatar" data-path="images/get-started/api/user-avatar.png" />

From here you can generate a new API key.

## Create the workflow

After you've [published an app](/deploy), you can create the workflow.
Navigate to the "Workflows" tab in your app's "Deployments" page.

<img width="60%" src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/get-started/workflow/workflow-tab.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=b7f52f92b406d9ca0b713c8b0453f9bf" alt="Workflows tab" data-path="images/get-started/workflow/workflow-tab.png" />

Now you can create a new workflow by clicking the "New Workflow" button.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/new-workflow.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=93b7d63665eacd331cde37bedda0b9a0" alt="New workflow" data-path="images/get-started/workflow/new-workflow.png" />

## Configure the trigger

This will open the integrated Zapier editor where you can build any workflow that can be built with Zapier.
First, open the trigger menu to select the trigger you want to start the workflow.

<img width="70%" src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/get-started/workflow/zapier-editor.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=b477fd76cdd5fedc4fb0c7e3bc48c2ec" alt="Zapier editor" data-path="images/get-started/workflow/zapier-editor.png" />

Now select the trigger you want to start the workflow. In this example we'll use Zapier's native "Schedule" trigger.

<img width="50%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/trigger-selection.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=570b9f35083b1c60210019f4e52e57ef" alt="Schedule trigger" data-path="images/get-started/workflow/trigger-selection.png" />

Configure the trigger to run however you want. Here we selected to run our workflow every day at 10am.

## Connect with your WordApp

Now for the fun part. We want to run our WordApp whenever the trigger fires. To do this, click on the action card below the trigger to open the action menu.
Now type in Wordware and select Wordware as your desired app.

<img width="80%" src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/get-started/workflow/wordware-action.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=5f564a58da44aedfea03b71d7676cfdd" alt="Action selection" data-path="images/get-started/workflow/wordware-action.png" />

Once you have Wordware selected, choose run app as your desired action event. Now we need to authenticate with Wordware.
Press the sign in button and enter your API Key.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/authentication.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=95f278a813a084b07420ee9a7bacf09e" alt="Authentication" data-path="images/get-started/workflow/authentication.png" />

You should now see your Wordware organization inside of the Account section. Next, let's select which app we want to run.
Open the App Id dropdown and select the WordApp you want to run in this workflow.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/app-selection.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=65d5282321105eb0ac71d5818a13eaf8" alt="App selection" data-path="images/get-started/workflow/app-selection.png" />

Now select the version of the app you want to run.

<img width="60%" src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/get-started/workflow/version-selection.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=c67a8920395e53658d5abaf8e7f5f6d7" alt="Version selection" data-path="images/get-started/workflow/version-selection.png" />

Finally, if your app requires any input, you can add it in the input fields. If you want to reference the trigger's data, you can do so by clicking the "+" button next to the input field.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/inputs.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=8fe82fc34f874034d72c5a0e4c128a96" alt="Inputs" data-path="images/get-started/workflow/inputs.png" />

## Test the workflow

Once you have all of the inputs configured, you can click the "Test step" button to make sure your workflow is working as expected.
If you have not run your app before, you will be prompted to run it once manually to simulate the responses we would get when the workflow actually runs.
Select the provided curl command and run it in your terminal.
It should stream back a response.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/test-workflow.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=017626fbca60e4c1178e4fd2a41894fe" alt="Test workflow" data-path="images/get-started/workflow/test-workflow.png" />

Once the run has completed, navigate back to the Zapier editor and click the "Retest step" button to make sure the app is running as expected.
After testing, you should see the run id, the status of the run, and any outputs from the app.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/completed-run.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=dafc94b4291a88f80d9a892f3fd5f1fe" alt="Completed run" data-path="images/get-started/workflow/completed-run.png" />

## Using WordApp outputs

We now set up a WordApp that runs whenever the trigger fires. But what if we want to use the output of the WordApp in another Zapier action?
To do this, lets add a new step to our workflow. Select the "Add step" button below the current step.

<img width="50%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/add-step.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=22f37cba613b2e166838c3fce888c2ad" alt="Add action" data-path="images/get-started/workflow/add-step.png" />

Select the app you want to use the output from the WordApp. In this example we will use the "Google Sheets" app to store the output in a spreadsheet.
Choose your desired action, and make sure to authenticate if necessary. In this case we will use the "Create row" action.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/output-app.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=19c0a0699184e927c08ebbcdaf22a941" alt="Output app" data-path="images/get-started/workflow/output-app.png" />

In the configure section, fill out the required input fields.

<img width="60%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/required-inputs.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=cd5fd6b24ee170f15d754dc9ef500dc6" alt="Required inputs" data-path="images/get-started/workflow/required-inputs.png" />

Now to reference the output from the WordApp you can type backslash `/` or press the `+` button next to the input field.
Select your WordApp from earlier and you can choose any of the outputs from the WordApp.

<img width="50%" src="https://mintcdn.com/wordware/GaAvACBL43qOk0NE/images/get-started/workflow/wordapp-outputs.png?fit=max&auto=format&n=GaAvACBL43qOk0NE&q=85&s=844308e26b6d252588dd24eb30e78f2c" alt="Output selection" data-path="images/get-started/workflow/wordapp-outputs.png" />

Now press the "Test step" button to test the workflow, and you should see the output from the WordApp in the Google Sheets app.

## Publish the workflow

Once you have successfully tested the workflow, you can click the "Publish" button to live deploy the workflow.

<img width="80%" src="https://mintcdn.com/wordware/TZfH9znr7B6oxuO7/images/get-started/workflow/publish.png?fit=max&auto=format&n=TZfH9znr7B6oxuO7&q=85&s=e05c28b6a292724a85ee1a3a00de4890" alt="Publish workflow" data-path="images/get-started/workflow/publish.png" />

Your workflow is now live and will run automatically based on your trigger configuration. This has been a basic
example of how to use the Wordware-Zapier integration, but the real power comes from the fact that you can now use any
of the 1000s of apps that Zapier supports with your WordApps!

To utilize the full power of this integration, reference the [Zapier docs](https://docs.zapier.com/platform/home) to see
how to make more complex workflows. Happy automating!

<CardGroup>
  <Card title="Build a Chatbot" icon="messages" href="/recipes/chatbots">
    Walk through a simple chatbot recipe to accomplish your goals with Wordware
  </Card>

  <Card title="Run Custom Code" icon="square-code" href="/nodes/code-execution">
    Add custom JavaScript or Python code to your WordApp to do anything you can imagine.
  </Card>

  <Card title="Get a Walkthrough with a Pro" icon="calendar" href="https://app.wordware.ai/book">
    Book a call with one of our experts to get a personalized walkthrough of Wordware.
  </Card>

  <Card title="Generations" icon="brain-circuit" href="/nodes/generation">
    See how generations enable you to accomplish most anything you can imagine.
  </Card>
</CardGroup>
