AI Agents

Query BigQuery and publish insights to X with AI analysis

12 nodes 224 123 Automatic trigger
Download

Workflow Description

An intelligent agent receives questions via chat or X, executes queries on BigQuery, analyzes results using OpenAI, and posts findings to Twitter. The agent maintains conversation context and memory across interactions.

How it works

  1. 1.Receive user question through chat trigger or Twitter mention
  2. 2.Execute SQL query against your BigQuery dataset
  3. 3.Process and analyze results with OpenAI language model
  4. 4.Post summary and insights to X/Twitter automatically

Use cases

  • Publish automated daily data reports to Twitter
  • Provide instant answers to analyst questions about your data
  • Share business insights extracted from large datasets in real-time

Requirements

  • Google Cloud account with BigQuery enabled and accessible datasets
  • OpenAI API key for advanced data analysis and summarization
  • X/Twitter account credentials for automated posting

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

OpenAI AI Agent Tool Google Big Query Twitter/X Memory Chat Trigger

Details

Trigger Automatic trigger
Nodes 12
Apps 7
Views 224
Downloads 123

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (12)

/

OpenAI Chat Model

OpenAI

#1

AI Control Tower Agent

Agent

#2

Sticky Note1

Sticky Note

#3

Sticky Note2

Sticky Note

#4

Call Query Tool

Tool Workflow

#5

Sticky Note

Sticky Note

#6

Query Database

Google Big Query

#7

Trigger Executed by the AI Tool

Execute Workflow Trigger

#8

Sanitising the Query

Code

#9

Chat Memory

Memory Buffer Window

#10

Chat with the User

Chat Trigger

#11

Sticky Note3

Sticky Note

#12