Skip to content

Commit 142e000

Browse files
committed
feat(mcp): connect the chinese astrology and feng shui servers
DEFAULT_PRODUCTS is a hardcoded slug list, so a new RoxyAPI domain never reaches this template until it is added here. Both servers are live and return tools, and the system prompt now names what they answer and which of them need a birth time, so the model routes to them instead of apologising for a domain it can already reach. Copy follows the wiring rather than leading it: thirteen spiritual domains plus location, not eleven.
1 parent e54c3f0 commit 142e000

6 files changed

Lines changed: 17 additions & 8 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Agents Guide
22

3-
This is an MIT licensed RoxyAPI Template: a white label AI spiritual voice assistant built with Next.js 16, the Vercel AI SDK, and the browser Web Speech API, made to be cloned, customised, rebranded, and resold as your own product. It auto discovers remote RoxyAPI MCP servers at runtime, so the LLM reaches 160+ verified tools across 12 domains (11 spiritual plus location geocoding) with no hardcoded endpoint wiring. It ships both a full voice site and an embeddable voice widget. You are most likely a coding agent helping someone build their own product on top of this Template. More Templates to fork: https://roxyapi.com/starters
3+
This is an MIT licensed RoxyAPI Template: a white label AI spiritual voice assistant built with Next.js 16, the Vercel AI SDK, and the browser Web Speech API, made to be cloned, customised, rebranded, and resold as your own product. It auto discovers remote RoxyAPI MCP servers at runtime, so the LLM reaches 200+ verified tools across 14 domains (13 spiritual plus location geocoding) with no hardcoded endpoint wiring. It ships both a full voice site and an embeddable voice widget. You are most likely a coding agent helping someone build their own product on top of this Template. More Templates to fork: https://roxyapi.com/starters
44

55
## Canonical RoxyAPI references (use these, do not guess)
66

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Browser native speech in, spoken reading out. Auto-discovered Remote MCP tools,
2727

2828
AI voice readings are only as trustworthy as the data behind them. This Template grounds every spoken answer in real, verified calculations. Speech to text and text to speech run for free in the browser, and every reading is computed by [RoxyAPI](https://roxyapi.com) tools through [Remote MCP](https://roxyapi.com/docs/mcp), then read aloud. You bring your own language model, so the voice and personality are yours, and the calculations are verified against NASA JPL Horizons before a single word is spoken.
2929

30-
**Eleven spiritual domains plus location geocoding. Auto-discovered tools. Multilingual. Any LLM. No extra voice account.**
30+
**Thirteen spiritual domains plus location geocoding. Auto-discovered tools. Multilingual. Any LLM. No extra voice account.**
3131

3232
| Domain | What You Can Ask Out Loud |
3333
|--------|---------------------------|
@@ -136,7 +136,7 @@ Speech recognition and speech synthesis use the browser Web Speech API. That mea
136136

137137
## Remote MCP Tool Discovery
138138

139-
This assistant uses [Model Context Protocol](https://modelcontextprotocol.io) to discover every available tool from [RoxyAPI](https://roxyapi.com) at runtime. No manual endpoint wiring: all tools across 11 spiritual domains plus location geocoding are ready out of the box. Connections are initialized once and cached, so only the first request after a deploy pays the setup cost.
139+
This assistant uses [Model Context Protocol](https://modelcontextprotocol.io) to discover every available tool from [RoxyAPI](https://roxyapi.com) at runtime. No manual endpoint wiring: all tools across 13 spiritual domains plus location geocoding are ready out of the box. Connections are initialized once and cached, so only the first request after a deploy pays the setup cost.
140140

141141
Enable a subset with the `ROXYAPI_PRODUCTS` environment variable (fewer tools means faster, more accurate tool selection):
142142

src/app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export const metadata: Metadata = {
2020
"numerology voice",
2121
"vedic astrology",
2222
"human design",
23+
"chinese astrology voice",
24+
"bazi calculator",
25+
"feng shui voice",
2326
"mcp voice agent",
2427
"remote mcp",
2528
"vercel ai sdk voice",

src/app/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const DOMAINS = [
1010
"Tarot",
1111
"Human Design",
1212
"Forecast",
13+
"Chinese Astrology",
14+
"Feng Shui",
1315
"Biorhythm",
1416
"I Ching",
1517
"Crystals",
@@ -67,13 +69,13 @@ const jsonLd = {
6769
name: "AI Spiritual Voice Assistant",
6870
url: "https://github.com/RoxyAPI/spiritual-ai-voice-assistant",
6971
description:
70-
"Open source AI voice assistant for astrology, Vedic astrology, tarot, numerology, human design, forecast, biorhythm, I Ching, crystals, dreams, and angel numbers. Speech to text and text to speech run in the browser; every answer is grounded in RoxyAPI Remote MCP tools verified against NASA JPL Horizons. Ships an embeddable bottom corner voice widget for any website.",
72+
"Open source AI voice assistant for astrology, Vedic astrology, forecast, human design, Chinese astrology, feng shui, numerology, tarot, biorhythm, I Ching, crystals, dreams, and angel numbers. Speech to text and text to speech run in the browser; every answer is grounded in RoxyAPI Remote MCP tools verified against NASA JPL Horizons. Ships an embeddable bottom corner voice widget for any website.",
7173
applicationCategory: "LifestyleApplication",
7274
operatingSystem: "Web",
7375
offers: { "@type": "Offer", price: "0", priceCurrency: "USD" },
7476
creator: { "@type": "Organization", name: "RoxyAPI", url: "https://roxyapi.com" },
7577
featureList: [
76-
"Hands free voice readings across 11 spiritual domains",
78+
"Hands free voice readings across 13 spiritual domains",
7779
"Embeddable bottom corner voice widget for any website",
7880
"Answers grounded in verified calculations, not hallucinations",
7981
"Speaks and understands the user language",
@@ -134,7 +136,7 @@ export default function Home() {
134136
</section>
135137

136138
<section className="space-y-6 text-center">
137-
<h2 className="text-2xl font-bold text-zinc-100">One key. Eleven spiritual domains.</h2>
139+
<h2 className="text-2xl font-bold text-zinc-100">One key. Thirteen spiritual domains.</h2>
138140
<p className="mx-auto max-w-2xl text-sm text-zinc-400">
139141
The assistant reaches every RoxyAPI domain through a single Remote MCP connection, plus
140142
location geocoding so a spoken birthplace becomes a chart ready coordinate automatically.

src/lib/mcp.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export const DEFAULT_PRODUCTS = [
4949
"numerology",
5050
"human-design",
5151
"forecast",
52+
"chinese-astrology",
53+
"feng-shui",
5254
"biorhythm",
5355
"crystals",
5456
"angel-numbers",

src/lib/prompts.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ CAPABILITIES (use the right tool for each question):
3030
- Tarot: card draws, three-card spreads, yes/no oracle, daily card
3131
- Human Design: full bodygraph, energy type, strategy, authority, profile, centers, channels, gate activations, two-person connection, transit overlay
3232
- Forecast: cross-domain timeline of significance-scored key dates
33+
- Chinese Astrology: BaZi four pillars, luck pillars, day master strength, BaZi and zodiac compatibility, annual forecast, the 12 zodiac animals, solar terms, lunar date conversion, almanac days and auspicious date selection
34+
- Feng Shui: Kua number and Eight Mansions directions, flying star natal charts, annual and monthly star plates, annual afflictions, bagua sectors, the nine periods
3335
- Biorhythm: physical, emotional, intellectual cycles and critical-day alerts
3436
- Crystals: healing properties, chakra associations, crystal recommendations
3537
- Angel Numbers: spiritual meaning of recurring numbers (111, 222, 444, 1111, etc.)
@@ -42,10 +44,10 @@ MULTILINGUAL:
4244
- Keep domain-specific terms (planet names, nakshatra names, card names) in their original form and say a short translation when it helps.
4345
4446
BIRTH DATA HANDLING:
45-
- Chart tools (Western, Vedic, Human Design, Forecast, Biorhythm) require birth details (date, time, place).
47+
- Chart tools (Western, Vedic, Human Design, Forecast, Chinese Astrology BaZi, Biorhythm) require birth details (date, time, place).
4648
- If the user asks a chart question without providing birth details, ask for: date of birth, time of birth, and city or country of birth.
4749
- Once the user provides birth data, remember it for the rest of the conversation.
48-
- For tarot, I-Ching, crystals, angel numbers, numerology (life path only needs birth date), and dreams, birth time is NOT required.
50+
- For tarot, I-Ching, crystals, angel numbers, numerology (life path only needs birth date), dreams, Chinese zodiac sign, and feng shui (the Kua number needs only birth year and gender), birth time is NOT required.
4951
- Ambiguous dates: when a birth date is given purely as numbers and both the day and month could be one to twelve (for example "seven ten two thousand" or "three eleven nineteen eighty four"), do NOT guess the order, because some people say the day first and others the month first. Ask once, saying both readings out loud, and wait for the answer before calling any tool: "Quick check, do you mean the seventh of October, or the tenth of July?". Skip the question when it is already clear: a number above twelve fixes the day, or the month is spoken as a word like "November". Once resolved, do not ask again.
5052
5153
LOCATION FIRST, CHART SECOND (mandatory procedure for every chart tool: Western, Vedic, Human Design, Forecast, Biorhythm):

0 commit comments

Comments
 (0)