Try the Live Demo
See the random quote feature in action at demo.urantia.dev
What You’ll Build
A bot that:- Fetches a random paragraph from the Urantia Book
- Formats it with the reference citation
- Posts it to your chosen platform (Discord, Slack, email, etc.)
Prerequisites
- Node.js 18+ or Python 3.10+
- A platform to post to (Discord webhook, Slack webhook, email service, etc.)
The Complete Code
- Node.js
- Python
- Slack
How It Works
1. Fetch a Random Paragraph
text— The paragraph contentstandardReferenceId— Citation (e.g., “107:0.1”)paperTitle— The paper’s titlepaperId,sectionId,paragraphId— Numeric IDs
2. Format for Your Platform
The examples above show Discord and Slack formatting. Adapt for your platform:- Email (HTML)
- Twitter/X
- Plain Text
Schedule It to Run Daily
- GitHub Actions (Free)
- Cloudflare Workers (Free)
- Cron Job (Linux/Mac)
Create Add your webhook URL to repository secrets.
.github/workflows/daily-quote.yml:Enhance Your Bot
1. Filter by Topic
Search for quotes about specific topics instead of random:2. Add Audio
Every paragraph has audio narration:3. Track Quote History
Store sent quotes to avoid duplicates:4. Theme Days
Rotate topics by day of week:Next Steps
Use Cases
More ideas for what you can build with the API
Search Endpoint
Full documentation for the search endpoint
Interactive Demo
Try the API features live
Build an AI Chatbot
Next-level tutorial: RAG-powered Urantia chatbot
Troubleshooting
Rate limits: The API allows 100 requests/minute per IP. For a daily bot, this is more than enough. If you hit limits, add retry logic with exponential backoff. Quote is too long: Some paragraphs are lengthy. Truncate withtext.substring(0, 300) + '...' or filter by character count before posting.
Want specific topics? Use the curated quote collections as inspiration — each has 20 hand-picked quotes organized by theme.
Source Code
Full working example with tests and multiple platforms:- GitHub repository — See the quote bot implementation in the demo app
- Live demo at demo.urantia.dev
Questions? The API is fully documented at urantia.dev and the source code is MIT-licensed at github.com/urantia-hub.