What is the AI Assistant?
Databunny is an AI agent that analyzes your website analytics using:- Natural language processing: Ask questions in plain English
- Automated query generation: Converts questions to SQL and analytics queries
- Multi-step reasoning: Breaks down complex questions into sub-tasks
- Tool execution: Accesses analytics data, goals, funnels, links, and more
- Interactive visualizations: Generates charts, tables, and maps
- Proactive insights: Identifies trends, anomalies, and opportunities
How It Works
The AI assistant uses a sophisticated agent architecture:Agent Pipeline
- Triage: Classifies your question type
- Tool selection: Chooses appropriate analytics tools
- Query execution: Fetches data from ClickHouse
- Analysis: Interprets results and generates insights
- Reflection: Validates answer quality
- Response: Returns formatted answer with visualizations
Supported Models
- Primary: Claude 3.5 Sonnet (analytics agent)
- Reflection: GPT-4o-mini (quality validation)
- Triage: GPT-4o-mini (request classification)
Databuddy uses different models optimized for each task: powerful models for analysis, efficient models for routing.
Asking Questions
Via Chat Interface
- Click the AI button in the dashboard
- Type your question
- Press Enter or click Send
- View the AI’s response with data and charts
Via Keyboard Shortcut
- Press
Aanywhere in the dashboard - Type your question
- Get instant insights
Question Types
Traffic Analysis
Example questions:- “How many visitors did I have last week?”
- “What’s my traffic trend for the last 30 days?”
- “Show me pageviews by day for the last month”
- “Compare this week’s traffic to last week”
Page Performance
Example questions:- “What are my top 10 pages?”
- “Which pages have the longest time on page?”
- “Show me entry pages ranked by visitors”
- “What pages have the highest bounce rate?”
Bounce rate is only available at the site level. The AI will clarify this if you ask about per-page bounce rates.
Traffic Sources
Example questions:- “Where is my traffic coming from?”
- “Show me top referrers this month”
- “What’s the breakdown of direct vs referral traffic?”
- “Which social platforms send the most visitors?”
Geographic Analysis
Example questions:- “What countries are my visitors from?”
- “Show me a map of visitor locations”
- “Which regions have the most traffic?”
- “How many visitors from the US vs UK?”
Device & Browser
Example questions:- “What percentage of visitors use mobile?”
- “Show me device type distribution”
- “Which browsers are most popular?”
- “What’s the desktop vs mobile split?”
Goals & Conversions
Example questions:- “Show me all my goals”
- “What’s the conversion rate for newsletter signups?”
- “Create a goal for purchase completions”
- “How are my goals performing this month?”
- “Which goal has the highest conversion rate?”
Funnels
Example questions:- “Show me my funnels”
- “What’s the conversion rate for the signup funnel?”
- “Which step in the checkout funnel has the biggest drop-off?”
- “Create a funnel for the onboarding flow”
- “How does the signup funnel perform by referrer?”
Custom Events
Example questions:- “What custom events are being tracked?”
- “Show me the ‘button_click’ event frequency”
- “What properties does the ‘purchase’ event have?”
- “Show me recent ‘signup’ events”
Performance Metrics
Example questions:- “What’s my average page load time?”
- “Show me TTFB for the homepage”
- “Which pages are the slowest?”
- “How are my Core Web Vitals?”
Short Links
Example questions:- “Show me all my short links”
- “Create a link for the summer sale”
- “How many clicks did the ‘bf24’ link get?”
- “What’s the best performing link?”
Comparative Analysis
Example questions:- “Compare this week to last week”
- “Show me month-over-month growth”
- “How does mobile traffic compare to desktop?”
- “Which performs better: organic or paid traffic?”
AI Tools
The AI assistant has access to powerful analytics tools:Query Builder
Pre-built analytics queries:traffic: Pageviews, visitors, sessions over timesummary_metrics: High-level KPIstop_pages: Most viewed pagestop_referrers: Traffic sourcesdevices: Device type breakdownbrowsers: Browser distributioncountries: Geographic distributionperformance: Load times, TTFB, Web Vitalscustom_events: Event tracking data
SQL Execution
Custom SQL queries for complex analysis:Goals Tools
list_goals: List all goalsget_goal_by_id: Get goal detailsget_goal_analytics: Conversion metricscreate_goal: Create new goalupdate_goal: Modify existing goaldelete_goal: Remove goal
Funnels Tools
list_funnels: List all funnelsget_funnel_by_id: Get funnel detailsget_funnel_analytics: Conversion rates and drop-offsget_funnel_analytics_by_referrer: Referrer breakdowncreate_funnel: Create new funnel
Links Tools
list_links: List all short linksget_link: Get link detailssearch_links: Search by name/slug/URLcreate_link: Create new linkupdate_link: Modify linkdelete_link: Remove link
Annotations Tools
list_annotations: Chart annotationscreate_annotation: Mark events on chartsupdate_annotation: Edit annotationsdelete_annotation: Remove annotations
Visualizations
The AI generates interactive visualizations:Chart Types
Line charts: Traffic trends over timeData Integrity
The AI follows strict data integrity rules:Never Hallucinates
- NEVER invents metrics or numbers
- NEVER provides fake data
- ALWAYS calls tools before answering
- ONLY uses real data from tool results
Transparency
- Shows raw data from queries
- Explains data limitations
- Notes low sample sizes
- Flags data quality issues
Accuracy
- Uses exact labels from results
- Doesn’t rename or transform data
- Includes time context (“last 7 days”)
- Compares periods automatically
Advanced Features
Batch Queries
The AI batches multiple queries for efficiency:Multi-Step Reasoning
Complex questions are broken down: Question: “Which pages from Google have the best conversion rates?” Steps:- Get top pages from Google (filter: referrer = google.com)
- List all goals
- Calculate conversion rate for each page
- Rank by conversion rate
- Present top 10 with chart
Proactive Insights
The AI identifies patterns:- “Traffic dropped 25% because organic search declined”
- “Mobile conversion is 40% lower than desktop - consider mobile UX improvements”
- “Page load time increased 2x last week - investigate performance”
Contextual Recommendations
Based on your data:- “Only 3 days of data available - results may not be representative”
- “Low sample size (less than 100 events) - avoid strong conclusions”
- “Unusual spike detected on Jan 15 - consider adding annotation”
Confirmation Flows
Destructive actions require explicit confirmation:Creating Goals
- AI calls
create_goalwithconfirmed: false - Shows preview of goal configuration
- Asks: “Do you want to create this goal?”
- User confirms: “Yes, create it”
- AI calls
create_goalwithconfirmed: true - Goal created
Creating Funnels
Same two-step process:- Preview with
confirmed: false - Show funnel steps
- Request confirmation
- Create with
confirmed: true
Deleting Resources
- AI calls
delete_*withconfirmed: false - Shows what will be deleted
- Warns about data loss
- User confirms
- AI deletes with
confirmed: true
Date Handling
The AI understands natural date expressions:- “last week” → Mon-Sun of previous week
- “last 7 days” → Exactly 7 days ago to now
- “this month” → First day to today
- “yesterday” → Previous day
- “last 30 days” → 30 days ago to now
Privacy & Security
AI insights are private and secure:- User-scoped: Only sees your website’s data
- No training: Your data is not used to train models
- No sharing: Conversations are private
- Encrypted: All data in transit is encrypted
- GDPR compliant: No personal data exposed
Limitations
Bounce Rate
- Only available at site level
- Cannot calculate per-page bounce rate
- AI clarifies this limitation when asked
Historic Data
- Limited to data retention period (typically 90 days - 2 years)
- Cannot analyze data before tracking was installed
Real-Time
- Data has less than 1 minute latency from ingestion
- Not truly real-time, but near real-time
Custom SQL
- Must use SELECT/WITH statements only
- No INSERT/UPDATE/DELETE
- Must use parameter placeholders for safety
Best Practices
Be Specific
Good: “Show me pageviews by day for the last 30 days” Bad: “Show traffic”Provide Context
Good: “Compare mobile vs desktop conversion for the signup goal” Bad: “Compare stuff”Ask Follow-Ups
The AI maintains conversation context:- “Show me top pages”
- “Now filter to just mobile traffic”
- “What’s the average time on page?”
Request Visualizations
“Show me a chart of traffic over time” “Can you make a pie chart of device distribution?”Verify Important Decisions
Before making changes:- Review preview configurations
- Check dates and filters
- Confirm metrics are correct
Troubleshooting
AI Says “No Data”
- Check your date range
- Verify tracking is installed
- Ensure events are being sent
- Try a broader time period
AI Doesn’t Understand
Rephrase your question:- Use simpler language
- Break into smaller questions
- Provide more context
Charts Not Showing
Check browser console for errors:- Disable ad blockers
- Clear cache
- Try different browser
Slow Responses
Complex queries take longer:- Large date ranges
- Multiple aggregations
- Custom SQL queries
Next Steps
Analytics
Explore analytics data manually
Goals
Set up conversion tracking
Funnels
Analyze user journeys
API Reference
Programmatic data access