> ## Documentation Index
> Fetch the complete documentation index at: https://mage-staging.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI generated code

> Mage uses AI to help you build data pipelines faster— with our OpenAI integration, you can automate the tedious parts of pipeline development and focus on the fun stuff.

<Note>You will need to add an OpenAI API key to your project before you can use AI for various actions.</Note>

We currently support the following AI features:

* Generate pipelines
* Generate blocks
* Document code
  * Block documentation
  * Block comments
  * Pipeline documentation
  * Simultaneously document *all* blocks in a pipeline

<p align="center">
  <img src="https://github.com/mage-ai/assets/blob/main/overview/ai-demo.gif?raw=True" />
</p>

To see examples of how to use AI in Mage, check out our [AI guides](/guides/ai/overview).
