> For the complete documentation index, see [llms.txt](https://lastmile-ai.gitbook.io/lastmile-ai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lastmile-ai.gitbook.io/lastmile-ai-docs/workflows/intro-to-workflows.md).

# Intro to Workflows

## What is a workflow in LastMile AI?&#x20;

**First, workbooks.** A workbook is a notebook-inspired interface helps your prototype an AI-powered app. In a workbook, you can easily prompt and chain together text, image, and audio AI models in a single environment.&#x20;

**AI Workflows allow you to run batch data on a workbook and output resultant data to a .csv.**&#x20;

{% embed url="<https://www.youtube.com/watch?v=yhWmHeDLv0g>" %}

## How it works?

* **Start with a Workbook.**&#x20;
  * Create an AI workbook
  * Use GPT4 to help generate an email template based on parameters: recipient name, job, age. Based on these parameters, GPT4 outputs a different result.&#x20;
* **Run Workbook on Batch of Data (AI Workflows).**&#x20;
  * Input a .csv with batch of data that matches parameters defined in workbook (recipient name, job, age).&#x20;
  * Kick off 'Run Batch' to run the workbook against each row in the .csv&#x20;
  * Results will be outputted to a .csv

Free tier users can run 5 rows of data per workflow and Growth tier users can run 50 rows of data per workflow.
