Skip to main content

WhatsApp Bot

Access Khoj’s AI capabilities directly from WhatsApp. Chat with your second brain or get answers to general queries right from your messaging app.

WhatsApp QR Code

Quick Start

Get started with Khoj on WhatsApp:
1

Open WhatsApp

Launch WhatsApp on your phone.
2

Contact Khoj

Text +1 (848) 800-4242 or scan the QR code above.
3

Start Chatting

Begin asking questions immediately. The bot works right away for generic queries!
The WhatsApp bot works immediately for general questions. To access your personal knowledge base, you’ll need to connect it to your Khoj Cloud account.

Connect Your Account

To chat with your own notes and documents:
1

Create Khoj Cloud Account

Sign up at app.khoj.dev if you haven’t already.
2

Upload Your Data

Use the Desktop app or Obsidian plugin to sync your files with Khoj.
3

Connect WhatsApp

Go to the Khoj Cloud Settings page and follow the instructions to link your WhatsApp account.
4

Start Using Your Data

Once connected, the WhatsApp bot can access and search your personal knowledge base!
You need one of the desktop clients (Desktop app, Obsidian, or Emacs) to share and sync your data with Khoj before using it via WhatsApp.

Features

Slash Commands

Quick access to specific Khoj features using simple commands.

Online Search

Get responses powered by real-time web search.

Image Generation

Create images from text descriptions.

Personal Knowledge

Query your own notes and documents (after connecting account).

Slash Commands

Use these commands to access specific features:
Generate an image based on your text description.Example:
/dream A serene mountain landscape at sunset
/dream Futuristic city with flying cars
Image generation may have usage limits depending on your Khoj plan.
Explicitly force Khoj to retrieve context from your personal notes.Example:
/notes What did I write about project planning?
/notes Meeting notes from last week
This command requires your WhatsApp account to be connected to a Khoj Cloud account with uploaded data.

Usage Examples

What is the capital of France?

Pricing and Limits

The WhatsApp bot has usage limits on the free tier.

Free Tier

  • Limited number of messages per day
  • Basic access to chat and search
  • Image generation limits
Upgrade to a paid plan on Khoj Cloud for:

Higher Limits

Increased daily message quotas

More Images

Generate more images per day

Faster Responses

Priority processing for your queries

Advanced Features

Access to premium AI models

Upcoming Features

We’re actively developing new WhatsApp bot capabilities.
Features under development:

/share

Upload documents directly to your Khoj account from WhatsApp.

/speak

Receive voice responses from Khoj.
Have ideas for new commands? Raise an issue on the Flint repository!

Troubleshooting

  1. Verify you’ve sent a message to the correct number: +1 (848) 800-4242
  2. Check your internet connection
  3. Wait a moment - the bot might be processing your request
  4. Try sending a simple message like “hello”
This usually means:
  1. Your WhatsApp account isn’t connected to Khoj Cloud
  2. You haven’t uploaded any data to Khoj yet
Solution:
You’ve hit your daily quota. Options:
  1. Wait until tomorrow when limits reset
  2. Upgrade to a paid plan
  3. Use the web client or other clients for unlimited access
Possible reasons:
  1. Daily image generation limit reached
  2. Prompt violates content policy
  3. Temporary service issue
Try:
  • Rephrasing your prompt
  • Checking your usage limits
  • Trying again later

Privacy and Security

Message Privacy

Messages are encrypted in transit between WhatsApp and Khoj’s servers.

Data Usage

Your queries are processed to provide responses but are not used for training AI models without consent.

Account Linking

Linking your WhatsApp to Khoj Cloud allows the bot to access your personal knowledge base securely.

Privacy Policy

See our Privacy Policy for full details.

Source Code

The WhatsApp bot is open source and available for review and contribution.
Find the code in the Flint repository:

View Source

Browse the WhatsApp bot source code

Contribute

Report issues or contribute features

Comparison with Other Clients

FeatureWhatsAppWebDesktopObsidianEmacs
Setup RequiredNoneNoneMediumMediumMedium
File Sync✅ (manual)✅ (auto)✅ (auto)✅ (auto)
Chat
Search
Image Generation
Mobile Access✅ (PWA)✅ (mobile)
Usage Limits

Next Steps

Desktop App

Sync your files to use them in WhatsApp

Web Client

Access Khoj from any browser

Pricing

Upgrade for higher limits

Chat Features

Learn about chat capabilities

Build docs developers (and LLMs) love