n8n-nodes-rooyai-chat
v0.5.25
Published
Access Google Gemini AI models from Rooyai.com in n8n! Get your free API key at https://rooyai.com and use Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini 1.5 Pro and more with AI Agent, Basic LLM Chain, and other n8n AI nodes.
Maintainers
Readme
n8n-nodes-rooyai-chat
🚀 Access Google Gemini AI Models in n8n with Full AI Agent Support!
Connect to Rooyai.com and unlock access to Google Gemini AI models including Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini 1.5 Pro and more. Fully compatible with n8n's AI Agent for tool calling workflows!
🤖 AI Agent Support (Tool Calling)
This node provides full AI Agent compatibility with tool calling support. Your AI can:
- ✅ Use HTTP Request tools to fetch live data from websites
- ✅ Call custom functions defined in your n8n workflows
- ✅ Chain multiple tools in a single conversation
- ✅ Make intelligent decisions about when to use tools
Example AI Agent Workflow
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Chat Trigger │────▶│ AI Agent │────▶│ HTTP Request │
│ │ │ (Rooyai Model) │ │ (Tool) │
└──────────────────┘ └──────────────────┘ └──────────────────┘The AI Agent uses the Rooyai Chat Model to:
- Understand user requests
- Decide which tools to use
- Call tools automatically
- Synthesize results into natural responses
✨ Why Rooyai?
| Feature | Description | |---------|-------------| | 🤖 7 Gemini Models | Access the latest Google Gemini models from 1.5 to 2.5 | | 🔧 Full Tool Calling | Complete AI Agent support with automatic tool detection and execution | | 🔑 Free API Key | Sign up at rooyai.com to get started | | 💰 Cost Tracking | Built-in tracking of API costs per request | | ⚡ High Performance | Fast, reliable API with real-time streaming responses | | 🌍 Enterprise Ready | Production-grade infrastructure with 99.9% uptime |
📦 Installation
Via n8n Community Nodes (Recommended)
- Go to Settings → Community Nodes
- Click Install
- Enter:
n8n-nodes-rooyai-chat - Click Install
Via npm
npm install n8n-nodes-rooyai-chatRestart n8n after installation. The node appears under AI → Language Models.
⚙️ Quick Start
1. Get Your Free API Key
🔑 Visit rooyai.com to get your free API key!
2. Create Credentials in n8n
- Go to Credentials → Add Credential
- Search for "Rooyai API"
- Enter your API key from rooyai.com
- Click Save
3. Add to Your Workflow
For Basic LLM Chain:
[Rooyai Chat Model] ──▶ [Basic LLM Chain]For AI Agent with Tools:
[Chat Trigger] ──▶ [AI Agent] ──▶ [Your Tools]
│
[Rooyai Chat Model]🌟 Available Models
| Model | ID | Best For |
|-------|-----|----------|
| Gemini 2.5 Pro ⭐ | gemini-2.5-pro | Most capable, complex reasoning (default) |
| Gemini 2.5 Flash | gemini-2.5-flash | Fast & smart, great balance |
| Gemini 2.5 Flash Lite | gemini-2.5-flash-lite | Ultra-fast, lightweight tasks |
| Gemini 2.0 Flash | gemini-2.0-flash | Reliable, fast performance |
| Gemini 2.0 Flash Lite | gemini-2.0-flash-lite | Cost-effective, quick responses |
| Gemini 1.5 Pro | gemini-1.5-pro | Long context, detailed analysis |
| Gemini 1.5 Flash | gemini-1.5-flash | Fast, efficient processing |
🛠️ Node Parameters
| Parameter | Description | Default |
|-----------|-------------|---------|
| Model | AI model to use | gemini-2.5-pro |
| Temperature | Creativity level (0-1) | 0.7 |
| Max Tokens | Maximum response length | 4096 |
📖 Usage Examples
Example 1: Simple Chat
Connect Rooyai Chat Model to a Basic LLM Chain for simple Q&A:
[Manual Trigger] ──▶ [Basic LLM Chain] ──▶ [Output]
│
[Rooyai Chat Model]Example 2: AI Agent with Web Search
Create an AI that can search the web and analyze results:
[Chat Trigger] ──▶ [AI Agent] ──▶ [HTTP Request Tool]
│
[Rooyai Chat Model]Example 3: Multi-Tool Agent
Build a powerful agent with multiple capabilities:
┌──▶ [HTTP Request]
[Chat Trigger] ──▶ [AI Agent] ──▶ [Code Executor]
│ └──▶ [Database Query]
[Rooyai Chat Model]🔧 API Configuration
Default Endpoint
- Base URL:
https://rooyai.com/api/v1 - Chat Endpoint:
https://rooyai.com/api/v1/chat
Custom Headers
Add custom headers in credentials for:
- Organization ID
- Project tracking
- Custom routing
🐛 Troubleshooting
"API key not found"
- Verify your API key at rooyai.com/dashboard
- Ensure credentials are selected in the node
"Tool calls not working"
- Make sure you're using v0.5.17 or later
- Verify tools are connected to the AI Agent
- Check that the model supports tool calling
"Node not appearing"
- Restart n8n completely after installation
- Check n8n logs:
docker logs <container_name>
🏗️ Development
Scripts
npm install # Install dependencies
npm run build # Build for production
npm run dev # Watch mode
npm run lint # Check code qualityProject Structure
n8n-nodes-rooyai-chat/
├── credentials/
│ └── RooyaiApi.credentials.ts # API credentials
├── nodes/Rooyai/
│ ├── Rooyai.node.ts # Main node
│ ├── RooyaiLangChainWrapper.ts # LangChain integration
│ └── rooyai.svg # Node icon
└── package.json📄 License
MIT License - Free for personal and commercial use.
🌐 Resources
- 🌍 Rooyai.com - Get your API key
- 📚 n8n Documentation
- 🤖 AI Agent Guide
- 💬 n8n Community
Ready to build intelligent AI workflows?
Access Google Gemini AI models with full tool calling support 🚀
