The flow
Starts it 3Model 2Logic 11Service 7
The steps in the order they run, from what starts it.
- 1Chat TriggerChat triggerStarts it
- 2When clicking "Test workflow"Manual triggerStarts it
- 3Ollama Chat ModelLm Chat OllamaModel
- 4WorkflowTriggerExecute Workflow triggerStarts it
- 5Load the schema from the local fileRead Write FileService
- 6List all tables in a databasePostgresService
- 7AI AgentAgentModel
- 8If file exists or already retried generating itIfLogic
- 9List all columns in a tablePostgresService
- 10Extract SQL querySetLogic
- 11Extract data from fileExtract From FileService
- 12Add table name to outputSetLogic
- 13Check for trailing semicolonIfLogic
- 14Combine schema data and chat inputSetLogic
- 15Convert data to binaryConvert To FileService
- 16Add trailing semicolonSetLogic
- 17Check if query existsIfLogic
- 18Save file locallyRead Write FileService
- 19Combine query result and chat answerMergeLogic
- 20PostgresPostgresService
- 21Format empty outputSetLogic
- 22If ran manuallyIfLogic
- 23Format query resultsSetLogic