# Capabilities

Rafiki is a general-purpose AI assistant with specialized tools for Hive, INLEO, and financial markets.

## What You Can Ask

### Crypto & Markets

| Capability         | Example                                                                     |
| ------------------ | --------------------------------------------------------------------------- |
| Crypto prices      | "Price of HIVE, LEO, and BTC?"                                              |
| Price charts       | "Show me a HIVE price chart for the last 7 days"                            |
| Token lookup       | "What's the price of MATIC?"                                                |
| Market overview    | "How's the crypto market today?"                                            |
| Market predictions | "What's the prediction for Bitcoin price?" (powered by LeoStrategy Predict) |
| Prediction markets | "Show me prediction markets" or "What markets can I bet on?"                |
| Trade predictions  | "Buy Yes shares on this market" or "Check my prediction positions"          |

**250+ crypto tokens supported** including BTC, ETH, SOL, HIVE, HBD, LEO, SPS, DEC, RUNE, and more.

## Rafiki Leagues

Engage with INLEO through gamification:

| Feature                    | Description                                                                                         |
| -------------------------- | --------------------------------------------------------------------------------------------------- |
| **XP System**              | Earn XP for onchain actions — threading, commenting, voting, and maintaining daily streaks on InLeo |
| **Weekly Contests**        | Compete in paid contests with prizes (Tuesdays at noon EST)                                         |
| **Streaks**                | Build daily engagement streaks for bonus rewards                                                    |
| **Badges**                 | Unlock achievements for specific milestones and activities                                          |
| **Leaderboards**           | XP determines your position on the Leagues leaderboard                                              |
| **Anti-Gaming Protection** | Fair competition with sophisticated fraud detection                                                 |

Check your XP, rank, streaks, and badges at [rafiki.inleo.io/leagues](https://rafiki.inleo.io/leagues).

Check your progress at [rafiki.inleo.io/leagues](https://rafiki.inleo.io/leagues) or ask "How do I join Rafiki Leagues?"

## LEO Lotto

Win LEO tokens through the daily lottery system:

| Feature                | Description                                                                                                       |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Daily Spin**         | Free daily spin on the LEO Lotto prize wheel                                                                      |
| **LEO Token Prizes**   | Win real LEO tokens with transparent distribution                                                                 |
| **Burn Mechanics**     | 25% of every pool is burned forever, with lifetime burn progress visible across the lottery experience            |
| **Fair System**        | Transparent and provably fair prize distribution                                                                  |
| **Public Leaderboard** | Browse top buyers, biggest wins, and top burn contributors at a dedicated leaderboard page                        |
| **Weekly Highlights**  | Weekly leaderboard recaps spotlight the most active buyers, biggest wins, and total LEO burned that week          |
| **Burn Milestones**    | Major lifetime burn milestones are celebrated as the lottery crosses key thresholds                               |
| **Continuous Rounds**  | A new draw opens immediately after the previous one ends — no waiting gaps between rounds                         |
| **Live Countdown**     | When entries are closed, a countdown timer shows exactly when the next draw opens                                 |
| **Volume Discounts**   | Buy more tickets = pay less per ticket. Pricing: 5 LEO (tickets 1–5), 4 LEO (tickets 6–15), 3 LEO (tickets 16–30) |
| **Up to 30 Tickets**   | Buy up to 30 tickets per draw to increase your odds                                                               |
| **Streak Bonuses**     | Participate on consecutive days to earn free bonus tickets — milestones at 3, 7, and 14 days                      |

Try your luck with `/rafiki lottery`, visit [rafiki.inleo.io/leagues/lottery/leaderboard](https://rafiki.inleo.io/leagues/lottery/leaderboard), or ask "How does LEO Lotto work?"

## LPUD (Leo Power Up Day)

Monthly community event where LEO staking is rewarded with delegation prizes and community recognition:

| Feature               | Description                                                          |
| --------------------- | -------------------------------------------------------------------- |
| **Monthly Events**    | LPUD occurs on the 15th of every month                               |
| **Streak System**     | Build consecutive month participation streaks for additional rewards |
| **Prize Delegations** | Winners receive LEO POWER delegations from community sponsors        |
| **Leaderboards**      | Compete on streak and participation leaderboards                     |
| **Reminder System**   | Get DM notifications at T-7, T-3, T-1, and T-0 days                  |
| **Sponsorship**       | Community members can sponsor delegation prizes                      |
| **Stats Tracking**    | View your participation history, streaks, and total staked           |

Ask Rafiki "When is the next LPUD?" to check the next event, your streak, reminder options, or sponsorship details.

## ACE Predict

Trade prediction markets using ACE tokens with Rafiki as your account manager:

| Feature                        | Description                                                                                 |
| ------------------------------ | ------------------------------------------------------------------------------------------- |
| **Market Browsing**            | Ask "Show me prediction markets" to see available markets                                   |
| **Position Trading**           | Buy Yes/No shares with natural language: "Buy Yes on Bitcoin hitting $100k"                 |
| **Account Management**         | Deposit, withdraw, and check balances by asking Rafiki in chat                              |
| **Enhanced Portfolio Display** | Rich threadstorm-style portfolio views with visual progress bars                            |
| **Dual Balance Tracking**      | View both Rafiki-managed and LeoStrategy direct balances side-by-side                       |
| **LeoStrategy Trader Stats**   | Overall performance stats including rank, win rate, P\&L, and volume                        |
| **Position Tracking**          | View open positions, profit/loss, and market status with detailed analytics                 |
| **Auto-Deposits**              | Send ACE, HIVE, or HBD to @askrafiki (auto-forwarded to @predictit for LeoStrategy funding) |
| **Autonomous Trading**         | Background paper trading engine learning optimal strategies (experimental)                  |
| **Notification Alerts**        | Get updates on position changes and market resolutions                                      |

**Getting Started:**

* Fund your account: ask Rafiki how to deposit into prediction markets
* Browse markets: "What prediction markets are available?"
* Check balance: ask "What's my prediction balance?"
* View full portfolio: ask "Show my prediction positions"

### Traditional Finance

| Capability   | Example                     |
| ------------ | --------------------------- |
| Stock prices | "What's Apple stock at?"    |
| Forex rates  | "EUR to USD exchange rate?" |
| Market news  | "Any news about Tesla?"     |

### Hive & INLEO

| Capability                     | Example                                                                                                                                |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| Discord support tickets        | "I need help with my Premium subscription" or "My swap is stuck — can you help?"                                                       |
| Thread search                  | "Find threads about LEO staking" or "Latest threads from @khaleelkazi"                                                                 |
| Blog post search               | "Find blog posts by @leofinance about DeFi" or "Latest articles from @khaleelkazi"                                                     |
| AI Overview                    | "What is the community saying about HIVE governance?" — Rafiki synthesizes top threads into a cited summary with follow-up suggestions |
| Search alerts                  | Save any search query and get DM notifications when new matching threads appear                                                        |
| Trending posts                 | "Show trending posts about DeFi"                                                                                                       |
| Read content                   | "Read this: inleo.io/@user/post"                                                                                                       |
| Enhanced conversation tracking | Maintains context across deep thread chains (up to 8 conversation levels)                                                              |
| Profile lookup                 | "Look up @khaleelkazi"                                                                                                                 |
| Wallet check                   | "What's in my wallet?"                                                                                                                 |
| Analytics                      | "My curation rewards this week"                                                                                                        |
| LEO tracking                   | "How much LEO do I have staked?"                                                                                                       |
| Community analytics            | "Show 30-day platform stats" or "Top contributors this month"                                                                          |
| Personalized feed              | "Show me my feed"                                                                                                                      |
| Reminders                      | "Remind me about this thread in 2 hours"                                                                                               |
| Referrals                      | "Where's my referral link?" or "How do INLEO referrals work?"                                                                          |
| Support escalation             | "I want to speak to a team member"                                                                                                     |
| Hive Engine markets            | "What's the LEO price on HE?" or "Top LEO holders?" or "LEO:SWAP.HIVE pool info"                                                       |
| Social graph analysis          | "Who follows @khaleelkazi?" or "Show my social connections"                                                                            |
| Article threadstorms           | **Premium:** "Summarize this article as a threadstorm: https\://..."                                                                   |
| Curation automation            | Set up curation trails and fanbase auto-voting                                                                                         |
| Premium status                 | "/rafiki premium" to check your subscription status and perks                                                                          |

### Content & Research

| Capability        | Example                                    |
| ----------------- | ------------------------------------------ |
| Web search        | "What's happening with Bitcoin ETFs?"      |
| URL reading       | "Summarize this article: https\://..."     |
| Draft threads     | "Draft a thread about the hard fork"       |
| Scheduled posting | "Schedule this thread for tomorrow at 9am" |
| Deep analysis     | "Analyze LEO tokenomics"                   |
| General chat      | "Help me write a thread about HBD savings" |

### Creative

| Capability            | Example                                               |
| --------------------- | ----------------------------------------------------- |
| Image generation      | "Generate an image of a lion with a crown"            |
| Profile image editing | "Reimagine my profile picture as a cyberpunk version" |
| Image editing         | "Edit this image to make it more futuristic"          |
| Voice-to-text         | Send a voice message in Discord                       |

**Cost:** 10 credits per image, 75 credits per voice transcription (Premium only).

### Visual Analysis

| Capability                 | Example                                                                                                                      |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Thread image analysis      | When you include images in your thread, Rafiki automatically analyzes them and can reference the visual content in responses |
| Image descriptions         | Ask about images you've posted: "What do you see in this image?"                                                             |
| Visual context integration | Rafiki incorporates image content naturally into thread discussions                                                          |

**Features:**

* Automatically processes up to 3 images per thread
* Supports JPEG, PNG, GIF, and WebP formats
* Analyzes images from thread attachments and markdown links
* No additional cost — included with all interactions

## Hive-Engine Market Data

Ask Rafiki about any Hive-Engine token — prices, holders, liquidity pools, and more:

| Query Type      | Example                          |
| --------------- | -------------------------------- |
| Token info      | "What's the LEO token supply?"   |
| Current price   | "LEO price on Hive-Engine?"      |
| Top holders     | "Who are the top LEO holders?"   |
| Liquidity pools | "Show me the LEO:SWAP.HIVE pool" |
| Trading volume  | "LEO trading volume today?"      |
| Market depth    | "LEO buy/sell orders?"           |

Works with any Hive-Engine token including LEO, SPS, DEC, SWAP tokens, and more.

## Hive Engine Trading

Trade tokens on Hive Engine DEX through Rafiki's custodial wallet system:

| Feature                | Description                                           |
| ---------------------- | ----------------------------------------------------- |
| **Custodial Trading**  | Deposit tokens to @askrafiki for managed trading      |
| **DCA Orders**         | Set up dollar-cost averaging for automatic purchases  |
| **Limit Orders**       | Place buy/sell orders at specific prices              |
| **Balance Management** | Check balances, deposit funds, and withdraw profits   |
| **Trade History**      | View your complete trading history and performance    |
| **Market Analysis**    | Get price analysis and market insights before trading |

### How It Works

1. **Deposit funds:** Send SWAP.HIVE, LEO, or other supported tokens to **@askrafiki** with memo: `trade:yourusername`
2. **Check balance:** Ask "What's my trading balance?"
3. **Place trades:** Ask to buy or sell tokens with natural language
4. **Monitor positions:** Track your open orders and trading performance
5. **Withdraw:** Ask to withdraw profits back to your Hive account

**Example commands:**

* "Buy 100 LEO tokens"
* "Set up DCA to buy LEO weekly"
* "What's my trading balance?"
* "Show my trading dashboard"

**Supported tokens:** SWAP.HIVE, LEO, SPS, DEC, and other liquid Hive Engine tokens.

**Get started:** Ask "How do I start trading?" or check your balance with "What's my trading balance?"

## Curation Automation

Automate your Hive voting with intelligent curation tools:

| Feature             | Example                                                       |
| ------------------- | ------------------------------------------------------------- |
| Curation trails     | Follow other curators and copy their votes with custom delays |
| Fanbase auto-voting | Automatically vote on your favorite authors' content          |
| Comment rewards     | Automatically reward quality commenters on your posts         |
| Vote weight control | Set custom vote percentages for different accounts            |
| Mana management     | Automatic mana monitoring to prevent over-voting              |
| Daily vote limits   | Set maximum votes per day to control your voting power usage  |

**Setup:** `/rafiki curate dashboard` or use individual commands like `/rafiki curate trail_add <account>`

**Features:**

* Trail voting with customizable delays (0-3600 seconds)
* Fanbase voting with author-specific limits
* Comment rewards for quality commenters on your posts
* Custom mana floor settings (per trail/fanbase or global)
* Global pause/resume controls
* Real-time mana and voting power monitoring
* Web dashboard for advanced configuration (requires Hive Keychain authentication)
* Discover tab for exploring new curation opportunities

## LeoDex X Feed Alerts

Follow new original posts from **@leodexio** without leaving Discord.

| Feature                 | Description                                                                           |
| ----------------------- | ------------------------------------------------------------------------------------- |
| **New post alerts**     | Rafiki can surface new original @leodexio posts in Discord shortly after they go live |
| **Clean delivery**      | Posts are shared as direct X links so previews render naturally in Discord            |
| **Quick engagement**    | Each alert includes one-tap **Like**, **Repost**, and **Reply** links                 |
| **Original posts only** | Focus stays on fresh LeoDex posts rather than replies or reposts                      |

Best for: keeping up with LeoDex announcements, product updates, and social activity from inside Discord.

## Discord Support Tickets

If you open a private support ticket in Discord, Rafiki can help you troubleshoot account, wallet, Premium, posting, and product issues right inside the ticket.

| Feature                          | Description                                                                                                                   |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| **Private ticket help**          | Get guided support in a private Discord ticket without needing to repeat your issue every message                             |
| **Step-by-step troubleshooting** | Rafiki walks through clear next steps for common issues across INLEO, LeoDex, LeoStrategy/Predict, and Hive account workflows |
| **Human handoff**                | Ask for a team member at any time, or Rafiki can escalate when the issue needs manual review                                  |
| **Issue context retention**      | Ongoing ticket conversations stay focused on your current issue so troubleshooting can continue cleanly                       |

Best for: Premium issues, stuck flows, wallet confusion, posting authority setup, account questions, and product troubleshooting.

## LeoDex Status Management

Manage the LeoDex status page at status.leodex.io with incident tracking and changelog management:

| Feature                 | Description                                                                      |
| ----------------------- | -------------------------------------------------------------------------------- |
| **Incident Management** | Create, update, and resolve service incidents                                    |
| **Changelog Tracking**  | Add feature releases, improvements, and bug fixes to the public changelog        |
| **Component Status**    | Monitor different LeoDex services (frontend, swap engine, protocol integrations) |
| **Severity Levels**     | Categorize incidents by impact (minor, major, critical)                          |
| **Status Updates**      | Keep users informed with real-time incident progress                             |

**Available Services:**

* LeoDex Frontend - Main web interface
* LeoDex Beta - Beta version testing environment
* Swap Engine - Core cross-chain swap functionality
* THORChain Integration - THORChain protocol connectivity
* Midgard API - Data aggregation service
* Near Intents - Near Protocol integration
* Transaction Explorer - Blockchain transaction tracking

**Example Commands:**

* "Create an incident for slow swap processing"
* "Add a changelog entry for the new UI improvements"
* "Show me current LeoDex incidents"
* "What's the latest changelog entry?"

Use `/rafiki leodex incident` and `/rafiki leodex changelog` commands for detailed management.

## Premium Features

Premium subscribers get access to enhanced capabilities:

| Feature                    | Description                                                          |
| -------------------------- | -------------------------------------------------------------------- |
| **Daily Signal**           | Personalized daily digest of top INLEO threads delivered to your DMs |
| **Article Threadstorms**   | Share an article URL and ask Rafiki to summarize it as a threadstorm |
| **Natural Language Rules** | Create custom notification rules in plain English                    |
| **Big Brain Mode**         | Deeper analysis with enhanced reasoning (3 credits/message)          |
| **Extended Responses**     | Longer, more detailed answers and analysis                           |
| **Priority Support**       | Faster response times during peak usage                              |

### Referrals

Rafiki can point you to the INLEO referrals page and explain how the referral program works.

* Open [**inleo.io/referrals**](https://inleo.io/referrals) to get your referral link
* Referrals are managed from the **Referrals** section in your account settings
* When a referred user signs up and stays active, the referrer earns **LEO Power**

Ask Rafiki:

* "Where's my referral link?"
* "How do INLEO referrals work?"
* "How do I refer someone to INLEO?"

### Daily Signal

Get a curated digest of the best INLEO content, personalized to your interests:

* **Choose your topics** — Select up to 10 topics you care about (crypto, hive, gaming, etc.)
* **Pick your time** — Set delivery time in your timezone
* **Adjust length** — Brief (5 threads), standard (8), or detailed (12)
* **Preview anytime** — Generate a preview to see what you'll get
* **INLEO Knowledge Base** — Includes relevant stats and thread index insights

Set up with `/rafiki signal setup` or type "set up my daily signal" in chat.

**Check your status:** Use `/rafiki premium` to see your current subscription status, expiry date, and perks.

**Check usage:** Use `/rafiki usage` to see your credit balance and AI usage stats.

**Get Premium:** Subscribe at [inleo.io/premium](https://inleo.io/premium)

## Search & Research

Rafiki can search the web, find INLEO threads, and read articles for you. Search results include relevant links you can click to explore further.

### AI-Powered INLEO Search

Search the full INLEO thread index with personalization and AI synthesis:

| Tier               | What it does                                                                                           | Speed   |
| ------------------ | ------------------------------------------------------------------------------------------------------ | ------- |
| **Instant Search** | Personalized results ranked by your interests, follows, and engagement                                 | \~150ms |
| **AI Overview**    | Rafiki synthesizes the top results into a clear answer with inline citations and follow-up suggestions | \~2-3s  |

**Instant Search** — just ask:

* "Find threads about LEO staking"
* "Search for @khaleelkazi's latest posts"
* "Show me threads tagged #hive from this week"
* "@khaleelkazi" or "khaleelkazi latest threads" for a fast profile-focused lookup

**Smarter profile search:**

* Rafiki is better at understanding plain `@username` and username-style searches without extra formatting
* If a username is slightly mistyped, Rafiki can suggest the closest matching account instead of returning a dead end
* If the available discussion is older, Rafiki can make that clearer so you know when a topic may need fresher sources

**AI Overview** — ask a question:

* "What is the community saying about the HIVE hard fork?"
* "What are people saying about LeoDex recently?"
* "Compare HIVE vs HBD as savings vehicles based on community discussion"

Rafiki cites every claim with a numbered source `[1]` and suggests 3 follow-up questions to keep your research going.

**Live Data Widgets** — When your question involves real-time data, Rafiki automatically fetches it and displays rich cards alongside the AI answer:

| Query               | Widget shown                                     |
| ------------------- | ------------------------------------------------ |
| "Bitcoin price"     | Live BTC price with 24h change                   |
| "AAPL stock"        | Stock price card                                 |
| "USD to EUR"        | Currency converter card                          |
| "BTC chart 30d"     | Price chart image                                |
| "LEO lottery"       | Current pool size and draw countdown             |
| "sLEO APY"          | Staking rewards data                             |
| "Trending topics"   | Community pulse card                             |
| "@username profile" | User profile card                                |
| "@username wallet"  | Wallet balances                                  |
| General questions   | Web search results if community threads are thin |

No extra steps needed — Rafiki detects the data need automatically and weaves live data into the answer.

**Freshness guidance:** If search results are limited or mostly older discussions, Rafiki may signal that the available conversation is not very recent so you can decide whether to keep exploring or broaden the query.

**Personalization:** Results are ranked using your interests, communities you engage with, authors you follow, and your voting history. Premium subscribers get deeper personalization using their full follow graph and voting patterns.

**Free users:** 5 AI Overviews per day. **Premium:** Unlimited AI Overviews.

### Search Alerts

Save any search query and Rafiki will DM you whenever new matching threads appear:

* "Save a search alert for 'LEO tokenomics'"
* Up to 5 saved searches per user
* Notifications arrive in real time as new threads are indexed

### Other Search & Research features

* **Smart search behavior** — Automatically searches for factual questions to provide current, accurate information
* **Ultra-fast search** — Optimized vector indexing delivers results in under 1 second
* **Thread references** include direct links to the original content
* **Blog post indexing** for official accounts (@leofinance, @khaleelkazi, @leostrategy, @hiveproai)
* **Real-time data** for prices, news, and market information

## Personalized Features

With a verified account (`/rafiki link` on Discord):

* **Your feed** — Curated based on your voting patterns
* **Your wallet** — Direct access to balances and history
* **Your analytics** — Curation rewards, author rewards, engagement stats

## Enhanced Chat Experience

**Rafiki Chat** offers an enhanced experience with:

* **Real-time streaming responses** — See Rafiki typing as he thinks
* **Fast mode** — Default mode for quick, focused answers
* **Thinking mode** — Deeper answers for questions that need more reasoning or research
* **Search deeper follow-up** — When a question needs more digging, Rafiki can suggest a one-tap follow-up that runs a more thorough research pass with fresh sources, more structure, and a deeper write-up
* **Guest mode** — Try Rafiki instantly on the web without signing in. Guest chat is ideal for quick questions, with a small daily message allowance before Rafiki asks you to sign in
* **Guest-friendly landing page** — New visitors see simple starter prompts for Hive, INLEO, and crypto questions
* **Tool activity indicators** — Visual feedback when Rafiki uses tools
* **Rich image display** — Download and lightbox view for generated images
* **Thread link previews** — Rich previews when Rafiki references INLEO threads
* **Post to InLeo Threads** — Turn a chat response into an InLeo thread from the chat interface
* **Dark theme interface** — Optimized for comfortable extended use

Access the dedicated chat at [rafiki.inleo.io/chat](https://rafiki.inleo.io/chat/) or [inleo.io/chat/rafiki](https://inleo.io/chat/rafiki)

### Guest Access

You can now try Rafiki on the web without signing in first.

**What guests can do:**

* Ask general questions about Hive, INLEO, crypto, and research
* Use starter prompts from the welcome screen
* Open shared links that pre-fill a question and start the chat for you

**What sign-in unlocks:**

* Personalized answers tied to your account
* Wallet lookups and account-specific features
* Image attachments and other advanced chat features
* Longer ongoing usage beyond the guest limit

## Need Help?

* Check the [FAQ](https://github.com/steemleo/INLEO-Docs/blob/main/rafiki-ai-assistant/faq/README.md) for common questions
* Ask Rafiki directly: "What can you do?"
* Visit [docs.inleo.io](https://docs.inleo.io) for full documentation


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inleo.io/rafiki-ai-assistant/capabilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
