Getting Started with NexusAI
Welcome to NexusAI - The Universal AI Agent Platform built specifically for Africa! This guide will help you integrate intelligent AI agents into your applications in minutes.
What is NexusAI?โ
Nex```python from nexusai_sdk import NexusAIClient, AgentConfig
Create multimodal agent
client = NexusAIClient('https://nexus.bits-innovate.com') config = AgentConfig( instructions="You are a visual assistant", capabilities=["text", "vision", "voice"] )
agent = client.create_agent(config)hensive AI platform that enables African businesses to deploy intelligent AI agents with voice, vision, and text capabilities. Built for the African market with local language support and optimized for mobile-first experiences.
๐ Key Featuresโ
- ๐ฏ Multimodal AI: Voice, vision, and text processing in one platform
- ๐ฃ๏ธ African Languages: Native support for Swahili, Hausa, Yoruba, and more
- ๐ฑ Mobile-First: Optimized for African connectivity conditions
- ๐ข Business Adapters: Pre-built solutions for language learning, emergency services
- ๐ณ Credit System: Pay-as-you-use pricing with MTN Mobile Money support
- ๐ Enterprise Security: SSL encryption and secure API endpoints
Quick Startโ
1. Get Your API Accessโ
Free Tier (No Signup):
- 5 messages/day per IP
- Perfect for testing and development
- Access to all features with limits
Sign up for more: https://nexus.bits-innovate.com/signup
2. Install the SDKโ
Choose your preferred programming language:
# JavaScript/Node.js
npm install nexusai-sdk
# Python
pip install nexusai-sdk
3. Your First AI Agentโ
JavaScript Example:
const { NexusAIClient } = require('nexusai-sdk');
const client = new NexusAIClient('https://nexus.bits-innovate.com');
// Create an AI agent
const agent = await client.createAgent({
instructions: "You are a helpful assistant for African businesses",
capabilities: ["text", "voice"],
business_logic_adapter: "general"
});
// Send a message
const response = await client.sendMessage(
agent.session_id,
"Hello! Help me with my business plan."
);
console.log(response.message);
Python Example:
from nexusai_sdk import NexusAIClient, AgentConfig
client = NexusAIClient('https://nexus.bits-innovate.com')
# Create an AI agent
config = AgentConfig(
instructions="You are a helpful assistant for African businesses",
capabilities=["text", "voice"],
business_logic_adapter="general"
)
agent = client.create_agent(config)
# Send a message
response = client.send_message(
agent["session_id"],
"Hello! Help me with my business plan."
)
print(response["message"])
Business Logic Adaptersโ
NexusAI provides specialized adapters for African use cases:
๐ Language Learningโ
Perfect for educational platforms teaching English, French, or local languages.
const agent = await client.createAgent({
instructions: "You are an English tutor for African students",
business_logic_adapter: "languagelearning",
custom_settings: {
level: "beginner",
native_language: "swahili"
}
});
๐จ Emergency Servicesโ
Integrated with local emergency contacts and protocols.
const agent = await client.createAgent({
instructions: "You are an emergency response coordinator",
business_logic_adapter: "emergencyservices",
custom_settings: {
region: "west-africa",
emergency_contacts: {
police: "+233-999",
ambulance: "+233-777"
}
}
});
API Endpointsโ
Base URL: https://nexus.bits-innovate.com
| Endpoint | Method | Description |
|---|---|---|
/health | GET | Check API health |
/api/v1/agent/create | POST | Create new agent |
/api/v1/agent/{id}/message | POST | Send message |
/api/v1/agent/{id}/messages | GET | Get message history |
/api/v1/usage/{client_id} | GET | Check usage limits |
Pricing & Creditsโ
NexusAI uses a credit-based system - perfect for the African market:
- Free Tier: 5 messages/day (testing only)
- 1,000 Credits: $1.00 USD (โ10,000 words)
- 10,000 Credits: $9.00 USD (10% bonus)
- 100,000 Credits: $80.00 USD (20% bonus)
Payment Methodsโ
- ๐ณ MTN Mobile Money (Liberia and expanding)
- ๐ฆ Bank Cards (Visa, Mastercard)
- ๐ฑ More mobile money networks (coming soon)
Next Stepsโ
- Try the SDKs - Detailed SDK documentation
- API Reference - Complete API documentation
- SDK Documentation - Official JavaScript and Python SDKs
- Business Adapters - Specialized use cases
Supportโ
- ๐ง Email: support@nexus.bits-innovate.com
- ๐ฌ Community: Join our Discord server for discussions
- ๐ Documentation: https://nexus.bits-innovate.com/docs
Built with โค๏ธ for Africa by BITS (Building Innovative Technical Solutions)
Self-Hosting Setupโ
If you want to self-host the platform:
# Download the platform
wget https://github.com/bits-innovate/nexusai-platform/releases/latest/download/nexusai-platform.tar.gz
tar -xzf nexusai-platform.tar.gz
cd nexusai-platform
# Run automated setup
chmod +x setup.sh
./setup.sh
Option 2: Manual Setupโ
If you prefer manual setup or want to understand each step:
# Install dependencies
pip install flask flask-cors python-dotenv
# For full functionality (optional)
pip install "livekit-agents[deepgram,openai,cartesia,silero,turn-detector]~=1.0"
# Create environment file
cp .env.example .env
# Edit .env with your API keys (optional for development)
# Test the platform
python test_core.py
# Start API Gateway
python api_gateway/main.py
API Key Setup (Optional)โ
While you can start developing without API keys, you'll need them for production use:
-
Copy the environment template:
cp .env.example .env -
Add your API keys to
.env:# AI Service API Keys
OPENAI_API_KEY=your_openai_api_key
DEEPGRAM_API_KEY=your_deepgram_api_key
CARTESIA_API_KEY=your_cartesia_api_key
# LiveKit Configuration (for full functionality)
LIVEKIT_URL=wss://your-livekit-server.com
LIVEKIT_API_KEY=your_livekit_api_key
LIVEKIT_API_SECRET=your_livekit_api_secret -
Where to get API keys:
- OpenAI: OpenAI API Keys
- Deepgram: Deepgram Console
- Cartesia: Cartesia Dashboard
- LiveKit: LiveKit Cloud
Your First Agentโ
Let's create your first AI agent in just a few lines of code:
Python Exampleโ
from universal_ai_sdk import create_simple_agent
# Create a simple text agent
session = create_simple_agent(
instructions="You are a helpful assistant",
capabilities=["text"]
)
# Send a message
session.send_message("Hello! Can you help me?")
# Get the response
response = session.wait_for_response()
print(f"Agent: {response.content}")
JavaScript Exampleโ
import { NexusAIClient, AgentConfig } from 'nexusai-sdk';
// Create client
const client = new NexusAIClient('https://nexus.bits-innovate.com');
async function createFirstAgent() {
// Create agent
const config = new AgentConfig({
instructions: "You are a helpful assistant",
capabilities: ["text"]
});
const result = await client.createAgent(config);
const sessionId = result.session_id;
// Send message
await client.sendMessage(sessionId, "Hello! Can you help me?");
// Get response
const messages = await client.getMessages(sessionId);
const lastMessage = messages[messages.length - 1];
console.log(`Agent: ${lastMessage.content}`);
}
createFirstAgent();
Multimodal Agent Exampleโ
Here's how to create an agent with voice, vision, and text capabilities:
from universal_ai_sdk import create_simple_agent
# Create multimodal agent
session = create_simple_agent(
instructions="You are a vision-enabled assistant that can see and speak",
capabilities=["text", "voice", "vision"]
)
# Send text message
session.send_message("What do you see in this image?")
# Send image (you can also use voice input)
session.send_image("path/to/image.jpg")
# Get response (can be text or voice)
response = session.wait_for_response()
print(f"Agent: {response.content}")
Using Business Logic Adaptersโ
Business logic adapters allow you to customize agent behavior for specific use cases:
from universal_ai_sdk import create_simple_agent
# Create language learning agent
session = create_simple_agent(
instructions="You are a Spanish tutor",
capabilities=["text", "voice"],
business_logic_adapter="languagelearning",
custom_settings={
"target_language": "Spanish",
"proficiency_level": "beginner"
}
)
session.send_message("Can you help me practice Spanish?")
response = session.wait_for_response()
print(f"Tutor: {response.content}")
Testing Your Setupโ
Run the test suite to verify everything is working:
python test_core.py
You should see output like:
๐ Universal AI Agent Platform - Core Test Suite
============================================================
๐งช Testing Usage Tracker... โ
๐งช Testing Business Logic Adapters... โ
๐งช Testing Python SDK... โ
๐งช Testing JavaScript SDK... โ
๐งช Testing Documentation... โ
๐งช Testing Project Structure... โ
๐ All core tests passed!
Starting the API Gatewayโ
To start the REST API server:
python api_gateway/main.py
The API will be available at http://localhost:8000/api/v1
Next Stepsโ
Now that you have the platform running, explore these topics:
- API Reference - Complete REST API documentation
- SDK Documentation - Python and JavaScript SDK guides
- Business Logic Adapters - Customize agent behavior
- Deployment Guide - Production deployment options
- Deployment - Production deployment guides
Getting Helpโ
- Documentation: Complete guides and API reference
- Examples: Working code samples in the language learning guide
- Support: Contact us through our official channels
Common Issuesโ
Connection Issuesโ
If you can't connect to the platform:
# Check if the service is running
curl https://nexus.bits-innovate.com/health
SDK Installationโ
# For Python
pip install --upgrade nexusai-sdk
# For JavaScript
npm install nexusai-sdk@latest
API Key Issuesโ
- API keys are optional for basic usage
- Contact support for premium features
Ready to build? Let's explore the API Reference or check out the SDK Documentation!