Zum Inhalt springen
NEUMarktplatz und trig8n Agent: Verkaufen Sie, was Sie bauen, und erhalten Sie Pläne und Änderungen, die getestet sind, bevor Sie sie sehen. Neuigkeiten ansehen

Bibliothek / KI-Agenten & Assistenten

KI-Agenten & Assistenten

BigQuery mit einem OpenAI-Agenten abfragen, über eine generierte und bereinigte SQL-Pipeline

Von einem anderen Workflow aufgerufen, lässt es ein OpenAI-Chatmodell als Agenten SQL schreiben, bereinigen und gegen BigQuery ausführen, statt das integrierte BigQuery-Tool zu verwenden.

Was sie bewirkt

### 2. AI Agent equipped with the query tool In order to have more control on the input of the BigQuery node, we don't use the BigQuery tool. Instead we have a set of nodes to retrieve the SQL query, clean it and send it to a BigQuery Node. #### How to setup? - AI Agent with the Chat Model: 1. Add a chat model with the required credentials *(Example: Open AI 4o-mini)* 2. Adapt the name of your BigQuery table in the system prompt *(Example: transports.shipments)* 3. Adapt the tables fields explanation in the system prompt [Learn more about the AI Agent Node]({{ $env.WEBHOOK_URL }} - Copy and past the nodes in the yellow sticker in another workflow. Point the query tool to this workflow. [Learn more about the Custom n8n Workflow Tool node]({{ $env.WEBHOOK_URL }}

Die Schritte

  1. OpenAI Chat Model
  2. AI Control Tower Agent
  3. Call Query Tool
  4. Query Database
  5. Trigger Executed by the AI Tool
  6. Sanitising the Query
  7. Chat Memory
  8. Chat with the User
  9. Error Handler

Ähnliche Automatisierungen