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.
You will need to add an OpenAI API key to your project before you can use AI for various actions.
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
To see examples of how to use AI in Mage, check out our AI guides.
Once you have your OpenAI API key, go to project settings (click the “wizard” in the top right > Workspace > Preferences) and enter the OpenAI API key under the section labeled OpenAI.
When creating a new pipeline, select the option labeled Using AI.Then, type the description of what the pipeline should do.For example:Load data from an API,
then clean the column names,
and finally export the dataframe to PostgreSQL.
You must turn on the feature named add_new_block_v2
in your project settings. (click the “wizard” in the top right > Workspace > Preferences)
When adding a new block, type in the description of what you want the block to do.
In the autocomplete dropdown list, select the 1st option with a label starting withGenerate block using AI: …