🚀 Getting Started
Integrating your MakeMyBot chatbot is simple and takes less than 60 seconds. Follow these steps to get your chatbot live on your website.
Step 1: Create Your Chatbot
If you haven't already, create your chatbot using our easy wizard. Configure its personality, features, and appearance.
Step 2: Get Your Integration Code
Go to your dashboard, find your chatbot, and click the "Integrate" button to get your unique code snippet.
Step 3: Add to Your Website
Copy the code snippet and paste it into your website's HTML, just before the closing
</body> tag.
🌐 Web Integration (HTML/JavaScript)
The simplest way to add your chatbot to any website using vanilla HTML and JavaScript.
Basic Integration
Add this code snippet to your HTML file, just before the closing </body>
tag:
<!-- MakeMyBot Chatbot Integration -->
<script>
window.MakeMyBotConfig = {
botId: 'YOUR_BOT_ID',
name: 'Customer Support Bot',
avatar: '🤖',
color: '#667eea',
position: 'bottom-right',
welcomeMessage: 'Hi! How can I help you today?'
};
</script>
<script src="https://cdn.MakeMyBot.com/widget.js" async></script>
<!-- End MakeMyBot Integration -->
YOUR_BOT_ID with your actual bot ID from
the dashboard.
Advanced Configuration
Customize your chatbot's behavior with additional options:
window.MakeMyBotConfig = {
botId: 'YOUR_BOT_ID',
name: 'Customer Support Bot',
avatar: '🤖',
color: '#667eea',
position: 'bottom-right',
welcomeMessage: 'Hi! How can I help you today?',
// AI Configuration (Your own LLM API)
aiProvider: 'openai', // 'openai', 'anthropic', 'google', 'cohere', or 'custom'
apiKey: 'YOUR_API_KEY', // Your LLM provider API key
model: 'gpt-4', // Model to use (optional)
temperature: 0.7, // Creativity level (0-1)
// Advanced options
autoOpen: false, // Auto-open chat on page load
openDelay: 3000, // Delay before auto-open (ms)
showOnMobile: true, // Show on mobile devices
language: 'en', // Language code
theme: 'light', // 'light' or 'dark'
// Custom styling
customCSS: {
fontSize: '14px',
borderRadius: '12px',
zIndex: 9999
}
};
⚛️ React Integration
Integrate MakeMyBot into your React application with our official component.
Install via npm
npm install @MakeMyBot/react-widget
Install via yarn
yarn add @MakeMyBot/react-widget
Use Script Tag
<script src="https://cdn.MakeMyBot.com/react-widget.js"></script>
Usage in React Component
import React from 'react';
import { MakeMyBotWidget } from '@MakeMyBot/react-widget';
function App() {
return (
<div>
{/* Your app content */}
<MakeMyBotWidget
botId="YOUR_BOT_ID"
name="Customer Support Bot"
avatar="🤖"
color="#667eea"
position="bottom-right"
welcomeMessage="Hi! How can I help you today?"
/>
</div>
);
}
export default App;
📝 WordPress Integration
Add your chatbot to WordPress using our plugin or manual integration.
Method 1: WordPress Plugin (Recommended)
- Download the MakeMyBot WordPress Plugin
- Go to Plugins → Add New → Upload Plugin
- Upload the plugin ZIP file and activate it
- Go to Settings → MakeMyBot
- Enter your Bot ID and configure settings
- Click Save Changes
Method 2: Manual Integration
Add the integration code to your theme's footer:
- Go to Appearance → Theme Editor
- Select footer.php from the right sidebar
- Paste your integration code before
</body> - Click Update File
📱 Mobile App Integration
Integrate MakeMyBot into your iOS and Android applications.
iOS Integration (Swift)
Install the MakeMyBot SDK via CocoaPods:
pod 'MakeMyBotSDK'
Initialize in your AppDelegate:
import MakeMyBotSDK
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
MakeMyBot.initialize(botId: "YOUR_BOT_ID")
MakeMyBot.setName("Customer Support Bot")
MakeMyBot.setColor("#667eea")
return true
}
Android Integration (Kotlin)
Add to your build.gradle:
dependencies {
implementation 'com.MakeMyBot:android-sdk:1.0.0'
}
Initialize in your Application class:
import com.MakeMyBot.sdk.MakeMyBot
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
MakeMyBot.initialize(this, "YOUR_BOT_ID")
MakeMyBot.setName("Customer Support Bot")
MakeMyBot.setColor("#667eea")
}
}
React Native Integration
Install the package:
npm install @MakeMyBot/react-native
Use in your component:
import { MakeMyBotWidget } from '@MakeMyBot/react-native';
function App() {
return (
<MakeMyBotWidget
botId="YOUR_BOT_ID"
name="Customer Support Bot"
color="#667eea"
/>
);
}
🎨 Customization Options
Customize your chatbot's appearance and behavior to match your brand.
Configuration Options
| Option | Type | Description |
|---|---|---|
botId |
string | Your unique bot ID (required) |
name |
string | Display name of your chatbot |
avatar |
string | Emoji or image URL for avatar |
color |
string | Primary color (hex code) |
position |
string | Widget position (bottom-right, bottom-left, etc.) |
welcomeMessage |
string | Initial greeting message |
🔌 API Reference
Programmatically control your chatbot using JavaScript API.
Available Methods
Open Chat
MakeMyBot.open();
Close Chat
MakeMyBot.close();
Send Message
MakeMyBot.sendMessage('Hello, I need help!');
Set User Info
MakeMyBot.setUser({
name: 'John Doe',
email: 'john@example.com',
customData: {
plan: 'premium',
userId: '12345'
}
});
Event Listeners
// Listen for chat opened
MakeMyBot.on('open', () => {
console.log('Chat opened');
});
// Listen for chat closed
MakeMyBot.on('close', () => {
console.log('Chat closed');
});
// Listen for new messages
MakeMyBot.on('message', (message) => {
console.log('New message:', message);
});
🔧 Troubleshooting
Common issues and how to resolve them.
Chatbot Not Appearing
- Verify your Bot ID is correct
- Check browser console for errors
- Ensure the script is placed before
</body> - Clear browser cache and reload
- Check if ad blockers are interfering
Styling Issues
- Check for CSS conflicts with your site
- Try adjusting the
zIndexin config - Use
customCSSto override styles - Ensure color values are valid hex codes