Overview

RohoPay docs ship with first-class AI tooling:

Claude Code Setup

Configure Claude Code CLI with full RohoPay context so it generates accurate integration code.

LLM Reference File

Machine-readable API summary at /llms.txt — inject into any AI tool’s system prompt.

Skills & Prompts

Pre-built slash commands: /rohopay-collect, /rohopay-webhook, /rohopay-card.

Docs AI Chat

Bottom-right AI chat widget powered by Crisp — answers integration questions live.

AI Chat Widget (Bottom Right)

The floating chat button on every docs page lets developers ask questions without leaving the page.

Setup (5 minutes)

  1. Create a free account at crisp.chat
  2. Create a Website Inbox and copy the Website ID (a UUID)
  3. Open apps/docs/docs.json and replace the placeholder:
"integrations": {
  "crisp": {
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  }
}
  1. In the Crisp dashboard, enable Crisp AI to auto-answer developer questions using ChatGPT
  2. (Optional) Train the bot by adding your llms.txt as a knowledge base source
Once configured, a pink chat bubble appears in the bottom right on every docs page. The AI can answer questions about integrating RohoPay, error codes, webhook setup, and test credentials.
The AI chat widget only appears on the deployed/hosted version of the docs. It will not show during local mintlify dev unless you have a valid Crisp website ID configured.

Mintlify AI Assistant

In addition to the Crisp widget, Mintlify’s built-in AI assistant is enabled on every page (the Ask AI option that appears when you hover over content). This requires deploying to Mintlify’s hosted platform. Configure it via contextual in docs.json:
"contextual": {
  "options": ["assistant", "copy"],
  "display": "popover"
}

Quick Start with Claude Code

# Install Claude Code CLI
npm install -g @anthropic-ai/claude-code

# Run in your project
claude

# Ask directly about RohoPay
> How do I collect mobile money payments?
> Generate a webhook handler in Next.js
> What does DISBURSE_TEST_BLOCKED mean?
See Claude Code Setup for CLAUDE.md context configuration.

LLM Reference File

# Download the API reference for any AI tool
curl https://docs.rohopay.com/llms.txt > rohopay-llms.txt

# Add to Claude Code workspace context
cat rohopay-llms.txt >> CLAUDE.md

# Add to Cursor rules
cp rohopay-llms.txt .cursor/rules/rohopay.md
The llms.txt covers every endpoint, phone format, error code, test credential, and implementation rule — in plain text optimized for AI context windows.