> ## Documentation Index
> Fetch the complete documentation index at: https://camelai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# API & Embedded Analytics

> Add AI-powered data analytics to your SaaS product

<Warning>
  **camelAI Legacy Product** — This documentation covers camelAI's embedded analytics offering, which is no longer being actively developed. We are migrating existing customers to the new camelAI platform. For the current product, visit [camelAI](https://camelai.dev).
</Warning>

camelAI is a deep research agent that connects directly to your data, answering your user's adhoc questions with interactive visualizations and actionable insights, all through a simple iframe embed or API call.

<iframe width="100%" height="400" src="https://www.youtube.com/embed/euoxi_jDPog?autoplay=1&loop=1&playlist=euoxi_jDPog&mute=1" title="camelAI Demo" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## See It In Action

**Try camelAI yourself** - We've connected our agent to the entire Hacker News dataset so you can experience what your users will feel.

[**Launch the Hacker News Demo →**](https://camelai.com/hackernews/)

Try asking questions like:

* "What are the most discussed AI companies this year and how has sentiment changed over time?"
* "Show me the correlation between post timing and engagement for Show HN posts"

Watch as camelAI writes SQL in real-time, explores the data from multiple angles, and creates interactive visualizations - exactly what your users will experience with your data.

## Integration Options

<CardGroup cols={2}>
  <Card title="Embedded iframe" icon="window" color="#3b82f6">
    Beautiful, customizable UI with visualizations. Perfect for adding a complete analytics experience to your product.
  </Card>

  <Card title="askCamel API" icon="terminal" color="#3b82f6">
    Single endpoint for text-to-SQL analysis. Ideal for chatbots, automation, and programmatic access.
  </Card>
</CardGroup>

## What We Handle for You

<CardGroup cols={2}>
  <Card title="Multi-Tenant Row-Level Security" icon="shield-check" color="#10b981">
    Easy data isolation with your own RLS policies.
  </Card>

  <Card title="Thread Management" icon="comment-dots" color="#3b82f6">
    Conversation history persists across sessions without any backend work on your end.
  </Card>

  <Card title="Real-Time Streaming" icon="bolt" color="#f59e0b">
    Interruptible, resumable responses via pub/sub - no websocket infrastructure to maintain.
  </Card>

  <Card title="Production-Ready UI" icon="palette" color="#8b5cf6">
    Beautiful iframe that's fully customizable - hide SQL for non-technical users, match your brand, customize recommendations.
  </Card>

  <Card title="Deep Research Agent" icon="brain" color="#ef4444">
    Goes beyond simple queries - explores your data and generates visualizations automatically.
  </Card>
</CardGroup>

***

## Get Started

<Steps>
  <Step title="Generate API Key">
    Head over to our [developer console](https://console.camelai.com) to generate your API key.
  </Step>

  <Step title="Connect Your Data">
    Connect your database or data warehouse through the console or API.
  </Step>

  <Step title="Embed the Component">
    Generate an iframe and embed it in your application for instant AI-powered analytics.
  </Step>
</Steps>

Ready to dive in? Our [quickstart guide](/dev_api/camel-api-quickstart) will walk you through each step in detail and have you up and running in under 5 minutes.

<Card title="Ready to get started?" icon="rocket" href="/dev_api/camel-api-quickstart">
  Check out our API quickstart guide to embed camelAI into your application in minutes.
</Card>
