AI Workflow, as defined by MindsDB, comprises steps that include fetching data from a user-defined data source, deploying a production-ready AI model, and, if required, training it with data. Subsequently, the model generates predictions or forecasts, which can be stored in an application or another data source.MindsDB integrates numerous data sources, applications, and AI frameworks. You can choose from a wide variety of integrations and create your custom AI Workflow, following the steps outlined in the AI Workflow documentation section.small changes!
How to Create and Automate AI Workflows with MindsDB
Follow the steps below that guide you through the process of creating and automating your custom AI Workflow.
Please note that each step has its dedicated chapter in the AI Workflow documentation section.
Step 1. Getting Started
MindsDB offers five development environments:
SQL
Mongo-QL
Python
JavaScript
REST API
Choose the one that fits your requirements. Each dev environment enables you to interact with MindsDB using our custom syntax.
Step 2. Integrate Data Sources
MindsDB integrates numerous data sources, including databases, data warehouses, applications, and more.
Follow this link for a full overview of data sources available at MindsDB.
You can create a connection between your data source and MindsDB using the CREATE DATABASE statement in SQL or the corresponding one for other dev environments.Once the connection is established, you can access your data directly from MinsdDB and use it for training AI models or making predictions, as you’ll see in the following steps.
Step 3. Create AI Engines
MindsDB integrates numerous AI frameworks. Before you can create an AI model, it is required to create an ML engine based on the AI framework of your choice. Oftentimes, the creation of an ML engine requires users to provide parameters such as API keys.
Follow this link for a full overview of AI engines available at MindsDB.
You can create an ML engine using the CREATE ML_ENGINE statement in SQL, or corresponding one for other dev environments.Once the ML engine is created successfully, you can proceed to create an AI model, as shown in the following steps.
Step 4. Create Projects
In MindsDB, all objects (including models, views, jobs, etc.) are stored within projects. You can use the default mindsdb project or create your own to store use-case-specific objects in different projects.You can create projects using the CREATE PROJECT statement in SQL, or corresponding one for other dev environments.Please note that this step is optional, as you can use the default mindsdb project.
Step 5. Deploy and Use Models
MindsDB enables you to not only create, train, and deploy models using a single SQL statement but also describe, retrain, and finetune models. This section stores all commands related to working with models within MindsDB.You can create models using the CREATE MODEL statement in SQL, or corresponding one for other dev environments. After that, you can utilize a wide range of features that enable you to get relevant data about models and also update models regularly to improve performance and accuracy.Once the model is ready, you can make predictions with a single SQL statement.
Step 6. Get Predictions
In MindsDB, you can get batch predictions by simply joining the model, also called an AI Table, with the input data table. Alternatively, you can query the model for a single prediction, providing the input data in the WHERE clause.Once you get the predictions or, in the case of time-series models, forecasts, you can save them into a data source or feed them into an application. The next step outlines how you can work with tables, views, and files in MindsDB to fulfill the requirements of your use case.
Step 7. Tables, Views, and Files
MindsDB enables you to create views, upload files, and work with tables from the connected data sources. All these objects can be used to store the data and predictions.
Step 8. Automate Workflows
Finally, MindsDB facilitates AI automation by providing the Jobs feature. Jobs enable you to schedule and automate the execution of all commands described in the previous seven steps.Here is a good AI automation example:
You’ve got trading data coming from the Binance integration and is updated every one minute.
You create an AI model that is trained using data from Binance to forecast the open price value for a specific trading pair (e.g. BTC/USDT).
You connect a Slack workspace to MindsDB and send real-time forecasts as Slack notifications.
You automate this process by creating a job that does the following:
The job retrains an AI model with the latest data to ensure the best performance and accuracy.
Next, the job queries the AI model joined with the Binance data to get the latest real-time forecasts, and subsequently, inserts them to the Slack workspace.
There you go! You just automated real-time trading data forecasts as Slack notifications.
Are you ready to try it out? Follow the Real-Time Trading Alerts tutorial to see AI Workflow automation using Jobs in action.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PearsDB","colors":{"primary":"#2AB673","light":"#55D799","dark":"#117866"},"logo":{"light":"https://mintcdn.com/pearsdb/28v0ptpWjVqw3bfG/logo/light.svg?fit=max\u0026auto=format\u0026n=28v0ptpWjVqw3bfG\u0026q=85\u0026s=81a2ef4480a8c2a913a106f90f8d6cb4","dark":"https://mintcdn.com/pearsdb/28v0ptpWjVqw3bfG/logo/dark.svg?fit=max\u0026auto=format\u0026n=28v0ptpWjVqw3bfG\u0026q=85\u0026s=bb512261f668f6a001787b90fa1bb3b2"},"favicon":"/favicon.svg","api":{"openapi":"openapi.json"},"background":{"decoration":"gradient"},"navbar":{"links":[{"label":"Support","icon":"book","href":"mailto:hi@mintlify.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.mintlify.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"integrations":{"amplitude":{"apiKey":"8b01ba5e500433e593244e93ee0e3a31"},"ga4":{"measurementId":"G-DKBWT47SRL"},"gtm":{"tagId":"GTM-5NZ7H7MP"}},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://mintlify.com/docs"},{"anchor":"Community","icon":"slack","href":"https://mintlify.com/community"},{"anchor":"Blog","icon":"newspaper","href":"https://mintlify.com/blog"}]},"languages":[{"language":"en","href":"home"},{"language":"fr","href":"fr/home"},{"language":"es","href":"es/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pearsdb","hasAudioNarration":false,"actualSubdomain":"pearsdb","customDomains":[],"gitSource":{"type":"github","owner":"mintlify-onboarding","repo":"pearsdb","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true,"issues":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae923bc124fa040b9a7c6a3:success","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"en","tag":"API Reference","count":48},{"language":"es","tag":"Referencia de la API","count":48},{"language":"en","tag":"Documentation","count":11},{"language":"en","tag":"Overview","count":11},{"language":"es","tag":"Documentación - Prueba","count":11},{"language":"es","tag":"Visión general","count":11},{"language":"en","tag":"Libraries","count":10},{"language":"es","tag":"Bibliotecas","count":10},{"language":"en","tag":"User Routes","count":9},{"language":"es","tag":"Rutas de Usuario","count":9},{"language":"en","tag":"Concepts","count":8},{"language":"es","tag":"Conceptos","count":8},{"language":"fr","tag":"Bibliothèques","count":6},{"language":"fr","tag":"Documentation","count":5},{"language":"fr","tag":"Aperçu","count":5},{"language":"en","tag":"Payout Link Routes","count":4},{"language":"es","tag":"Rutas de Enlaces de Pago","count":4},{"language":"en","tag":"Flow Routes","count":3},{"language":"en","tag":"Transfer Routes","count":3},{"language":"es","tag":"Rutas de Flujo","count":3},{"language":"es","tag":"Rutas de Transferencia","count":3},{"language":"fr","tag":"Concepts","count":3},{"language":"en","tag":"Payouts","count":2},{"language":"es","tag":"Pagos","count":2},{"language":"fr","tag":"Référence API","count":2},{"language":"fr","tag":"Journal des Modifications","count":2},{"language":"fr","tag":"FAQ","count":2},{"language":"fr","tag":"Accueil","count":1},{"language":"fr","tag":"Pour Commencer","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"docs/ai_workflow","slug":"/docs/ai_workflow","pageMetadata":{"title":"AI Workflow","sidebarTitle":"AI Workflow","description":null,"href":"/docs/ai_workflow"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`AI Workflow, as defined by MindsDB, comprises steps that include fetching data from a user-defined data source, deploying a production-ready AI model, and, if required, training it with data. Subsequently, the model generates predictions or forecasts, which can be stored in an application or another data source.`}),`\n`,_jsxs(_components.p,{children:[`MindsDB integrates numerous data sources, applications, and AI frameworks. You can choose from a wide variety of integrations and create your custom AI Workflow, following the steps outlined in the `,_jsx(_components.strong,{children:`AI Workflow`}),` documentation section.`]}),`\n`,_jsx(_components.p,{children:`small changes!`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-create-and-automate-ai-workflows-with-mindsdb`,children:`How to Create and Automate AI Workflows with MindsDB`}),`\n`,_jsx(_components.p,{children:`Follow the steps below that guide you through the process of creating and automating your custom AI Workflow.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Please note that each step has its dedicated chapter in the `,_jsx(_components.strong,{children:`AI Workflow`}),` documentation section.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`step-1-getting-started`,children:`Step 1. Getting Started`}),`\n`,_jsx(_components.p,{children:`MindsDB offers five development environments:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`SQL`}),`\n`,_jsx(_components.li,{children:`Mongo-QL`}),`\n`,_jsx(_components.li,{children:`Python`}),`\n`,_jsx(_components.li,{children:`JavaScript`}),`\n`,_jsx(_components.li,{children:`REST API`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Choose the one that fits your requirements. Each dev environment enables you to interact with MindsDB using our custom syntax.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-2-integrate-data-sources`,children:`Step 2. Integrate Data Sources`}),`\n`,_jsx(_components.p,{children:`MindsDB integrates numerous data sources, including databases, data warehouses, applications, and more.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Follow `,_jsx(_components.a,{href:`/integrations/data-sources-overview`,children:`this link`}),` for a full overview of data sources available at MindsDB.`]})}),`\n`,_jsxs(_components.p,{children:[`You can create a connection between your data source and MindsDB using the `,_jsx(_components.code,{children:`CREATE DATABASE`}),` statement in SQL or the corresponding one for other dev environments.`]}),`\n`,_jsx(_components.p,{children:`Once the connection is established, you can access your data directly from MinsdDB and use it for training AI models or making predictions, as you’ll see in the following steps.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-3-create-ai-engines`,children:`Step 3. Create AI Engines`}),`\n`,_jsx(_components.p,{children:`MindsDB integrates numerous AI frameworks. Before you can create an AI model, it is required to create an ML engine based on the AI framework of your choice. Oftentimes, the creation of an ML engine requires users to provide parameters such as API keys.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Follow `,_jsx(_components.a,{href:`/integrations/ml-engines-overview`,children:`this link`}),` for a full overview of AI engines available at MindsDB.`]})}),`\n`,_jsxs(_components.p,{children:[`You can create an ML engine using the `,_jsx(_components.code,{children:`CREATE ML_ENGINE`}),` statement in SQL, or corresponding one for other dev environments.`]}),`\n`,_jsx(_components.p,{children:`Once the ML engine is created successfully, you can proceed to create an AI model, as shown in the following steps.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-4-create-projects`,children:`Step 4. Create Projects`}),`\n`,_jsxs(_components.p,{children:[`In MindsDB, all objects (including models, views, jobs, etc.) are stored within projects. You can use the default `,_jsx(_components.code,{children:`mindsdb`}),` project or create your own to store use-case-specific objects in different projects.`]}),`\n`,_jsxs(_components.p,{children:[`You can create projects using the `,_jsx(_components.code,{children:`CREATE PROJECT`}),` statement in SQL, or corresponding one for other dev environments.`]}),`\n`,_jsxs(_components.p,{children:[`Please note that this step is optional, as you can use the default `,_jsx(_components.code,{children:`mindsdb`}),` project.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-5-deploy-and-use-models`,children:`Step 5. Deploy and Use Models`}),`\n`,_jsx(_components.p,{children:`MindsDB enables you to not only create, train, and deploy models using a single SQL statement but also describe, retrain, and finetune models. This section stores all commands related to working with models within MindsDB.`}),`\n`,_jsxs(_components.p,{children:[`You can create models using the `,_jsx(_components.code,{children:`CREATE MODEL`}),` statement in SQL, or corresponding one for other dev environments. After that, you can utilize a wide range of features that enable you to get relevant data about models and also update models regularly to improve performance and accuracy.`]}),`\n`,_jsx(_components.p,{children:`Once the model is ready, you can make predictions with a single SQL statement.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-6-get-predictions`,children:`Step 6. Get Predictions`}),`\n`,_jsxs(_components.p,{children:[`In MindsDB, you can get batch predictions by simply joining the model, also called an `,_jsx(_components.a,{href:`/generative-ai-tables`,children:`AI Table`}),`, with the input data table. Alternatively, you can query the model for a single prediction, providing the input data in the `,_jsx(_components.code,{children:`WHERE`}),` clause.`]}),`\n`,_jsx(_components.p,{children:`Once you get the predictions or, in the case of time-series models, forecasts, you can save them into a data source or feed them into an application. The next step outlines how you can work with tables, views, and files in MindsDB to fulfill the requirements of your use case.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-7-tables-views-and-files`,children:`Step 7. Tables, Views, and Files`}),`\n`,_jsx(_components.p,{children:`MindsDB enables you to create views, upload files, and work with tables from the connected data sources. All these objects can be used to store the data and predictions.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-8-automate-workflows`,children:`Step 8. Automate Workflows`}),`\n`,_jsx(_components.p,{children:`Finally, MindsDB facilitates AI automation by providing the Jobs feature. Jobs enable you to schedule and automate the execution of all commands described in the previous seven steps.`}),`\n`,_jsx(_components.p,{children:`Here is a good AI automation example:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You’ve got trading data coming from the `,_jsx(_components.a,{href:``,children:`Binance`}),` integration and is updated every one minute.`]}),`\n`,_jsx(_components.li,{children:`You create an AI model that is trained using data from Binance to forecast the open price value for a specific trading pair (e.g. BTC/USDT).`}),`\n`,_jsxs(_components.li,{children:[`You connect a `,_jsx(_components.a,{href:``,children:`Slack`}),` workspace to MindsDB and send real-time forecasts as Slack notifications.`]}),`\n`,_jsxs(_components.li,{children:[`You automate this process by creating a job that does the following:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The job retrains an AI model with the latest data to ensure the best performance and accuracy.`}),`\n`,_jsx(_components.li,{children:`Next, the job queries the AI model joined with the Binance data to get the latest real-time forecasts, and subsequently, inserts them to the Slack workspace.`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`There you go! You just automated real-time trading data forecasts as Slack notifications.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Are you ready to try it out? Follow the `,_jsx(_components.a,{href:`https://mindsdb.com/blog/automate-ai-workflows-with-mindsdb-real-time-trading-alerts`,children:`Real-Time Trading Alerts`}),` tutorial to see AI Workflow automation using Jobs in action.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"AI Workflow","sidebarTitle":"AI Workflow","description":null,"href":"/docs/ai_workflow"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How to Create and Automate AI Workflows with MindsDB","slug":"how-to-create-and-automate-ai-workflows-with-mindsdb","depth":2,"children":[{"title":"Step 1. Getting Started","slug":"step-1-getting-started","depth":3,"children":[]},{"title":"Step 2. Integrate Data Sources","slug":"step-2-integrate-data-sources","depth":3,"children":[]},{"title":"Step 3. Create AI Engines","slug":"step-3-create-ai-engines","depth":3,"children":[]},{"title":"Step 4. Create Projects","slug":"step-4-create-projects","depth":3,"children":[]},{"title":"Step 5. Deploy and Use Models","slug":"step-5-deploy-and-use-models","depth":3,"children":[]},{"title":"Step 6. Get Predictions","slug":"step-6-get-predictions","depth":3,"children":[]},{"title":"Step 7. Tables, Views, and Files","slug":"step-7-tables-views-and-files","depth":3,"children":[]},{"title":"Step 8. Automate Workflows","slug":"step-8-automate-workflows","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pearsdb","siteName":"PearsDB","title":"AI Workflow - PearsDB","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/docs/ai_workflow","matchLevel":0},"fr":{"href":"/fr/docs/ai_workflow","matchLevel":1},"es":{"href":"/es/docs/ai_workflow","matchLevel":1}}},"lastModified":"2025-08-14T14:12:47.696Z","originalFileLocation":"docs/ai_workflow.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"PearsDB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AI Workflow - PearsDB\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PearsDB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://pearsdb.mintlify.app/docs/ai_workflow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pearsdb.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=AI+Workflow\u0026amp;theme=8f8e788abe42733c03561b11\u0026amp;signature=c9b3a7dfe8bb7afcc8fb10b41ec289cdad17cee9820313d93beda45669b6692d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"AI Workflow - PearsDB\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pearsdb.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=AI+Workflow\u0026amp;theme=8f8e788abe42733c03561b11\u0026amp;signature=c9b3a7dfe8bb7afcc8fb10b41ec289cdad17cee9820313d93beda45669b6692d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pearsdb/8b1PsBgNCJAPCtJg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PearsDB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2AB673\">\u003clink data-mint-head rel=\"canonical\" href=\"https://pearsdb.mintlify.app/docs/ai_workflow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/ai_workflow.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://pearsdb.mintlify.app/docs/ai_workflow\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://pearsdb.mintlify.app/fr/docs/ai_workflow\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://pearsdb.mintlify.app/es/docs/ai_workflow\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://pearsdb.mintlify.app/docs/ai_workflow\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://pearsdb.mintlify.app/#organization\",\"name\":\"PearsDB\",\"url\":\"https://pearsdb.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pearsdb/28v0ptpWjVqw3bfG/logo/light.svg?fit=max\u0026auto=format\u0026n=28v0ptpWjVqw3bfG\u0026q=85\u0026s=81a2ef4480a8c2a913a106f90f8d6cb4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://pearsdb.mintlify.app#website\",\"name\":\"PearsDB\",\"url\":\"https://pearsdb.mintlify.app\",\"publisher\":{\"@id\":\"https://pearsdb.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://pearsdb.mintlify.app/docs/ai_workflow#webpage\",\"url\":\"https://pearsdb.mintlify.app/docs/ai_workflow\",\"name\":\"AI Workflow\",\"dateModified\":\"2025-08-14T14:12:47.696Z\",\"isPartOf\":{\"@id\":\"https://pearsdb.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://pearsdb.mintlify.app/docs/ai_workflow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://pearsdb.mintlify.app/docs/ai_workflow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://pearsdb.mintlify.app/docs/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Concepts\",\"item\":\"https://pearsdb.mintlify.app/docs/automation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI Workflow\",\"item\":\"https://pearsdb.mintlify.app/docs/ai_workflow\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://pearsdb.mintlify.app/docs/ai_workflow#article\",\"headline\":\"AI Workflow\",\"name\":\"AI Workflow\",\"url\":\"https://pearsdb.mintlify.app/docs/ai_workflow\",\"mainEntityOfPage\":{\"@id\":\"https://pearsdb.mintlify.app/docs/ai_workflow#webpage\"},\"dateModified\":\"2025-08-14T14:12:47.696Z\",\"publisher\":{\"@id\":\"https://pearsdb.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://pearsdb.mintlify.app#website\"}}]}\u003c/script>","agentPointerHref":"/docs/ai_workflow.md","siteName":"PearsDB","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://mintlify.com/docs"},{"anchor":"Community","icon":"slack","href":"https://mintlify.com/community"},{"anchor":"Blog","icon":"newspaper","href":"https://mintlify.com/blog"}]},"languages":[{"language":"en","tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Documentation","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/docs/introduction"},{"title":"Quickstart","href":"/docs/quickstart"},{"group":"Concepts","pages":[{"title":"Automation","sidebarTitle":"Automation","description":null,"href":"/docs/automation"},{"title":"AI Workflow","sidebarTitle":"AI Workflow","href":"/docs/ai_workflow"},{"title":"Handlers","sidebarTitle":"Handlers","description":null,"href":"/docs/mindsdb-handlers"},{"title":"Data Sources","sidebarTitle":"Data Sources","href":"/docs/data_sources"},{"title":"ML Engines","sidebarTitle":"ML Engines","href":"/docs/ml_engines"},{"title":"Project","href":"/docs/sql/project"},{"title":"Generative AI Tables","sidebarTitle":"Generative AI Tables","href":"/docs/generative-ai-tables"},{"title":"Models","sidebarTitle":"Models","href":"/docs/model-types"},{"title":"Callbacks","sidebarTitle":"Callbacks","href":"/docs/callbacks"},{"title":"Tables views files","href":"/docs/tables_views_files"}]},{"group":"Learn More","pages":[{"title":"Navigating the MindsDB GUI","sidebarTitle":"MindsDB GUI Overview","href":"/docs/mindsdb-gui"}]},{"title":"Introduction","href":"/docs/introduction"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Libraries","pages":[{"title":"Libraries","href":"/libraries/nodejs"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/overview"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/faq"}]},{"tab":"Demo","pages":[{"title":"Demo","href":"/training/david"}]}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/docs/ai_workflow"}]},{"language":"es","pages":[{"title":"es","href":"/es/home"}]}]},"basePath":"","title":"AI Workflow - PearsDB","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}