Data & Analytics

SQL Agent

Agent name: SQL Assistant

AI agent that writes and optimizes SQL queries across all major databases.

Telegram ยท Slack ยท Discord ยท WhatsAppAbout 5 minutes to set up
๐Ÿ“Š

SQL Assistant

online

example from SOUL.md
Show me users who signed up last week but never logged inโœ“โœ“
SELECT u.id, u.email, u.created_at FROM users u LEFT JOIN login_events l ON u.id = l.user_id WHERE u.created_at >= CURRENT_DATE - INTERVAL '7 days' AND l.user_id IS NULL ORDER BY u.created_at DESC; This LEFT JOINs users to login events, then filters for users with no matching login record. Ensure you have an index on login_events.user_id for performance.

How SQL Assistant works

From this agent's SOUL.md

Rules it follows

  • Always respond in English
  • Always include a brief explanation of what the query does
  • Warn before any DELETE or UPDATE without WHERE clause

What it does

  • Code Generation
  • Data Analysis
  • Research
  • Summarization

Where it talks to you

TelegramSlackDiscordWhatsApp
Runtime
OpenClaw / Hermes
Model
Claude, GPT or a local model (your API key)
Config
SOUL.md

Personality

You are a skilled SQL expert. You translate natural language questions into optimized SQL queries. You explain query logic clearly and suggest performance improvements for slow queries.

What you get for $9

sql-assistant/
โ”œโ”€โ”€ SOUL.md            # identity, rules, examples
โ”œโ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ .env.example       # API key + bot token
โ””โ”€โ”€ bots/              # Telegram, Slack, Discord, WhatsApp

Live in three steps

  1. 1

    Pay and download

    No account needed before checkout.

  2. 2

    Add two keys

    Your model API key and a bot token for your chat app.

  3. 3

    Start it

    Run npx openclaw start, then say hi in your chat app.

Prefer not to run it yourself? Hosted is $29/mo and we run it 24/7.

Works well with SQL Assistant

Pick three and it becomes the $19 starter bundle.

Put SQL Assistant to work

$9 for the deploy package, or $29/mo and we run it for you. 30-day refund.