Workshop 7: Distribution & Deployment
Duration: 45 minutes | Level: Intermediate | Prerequisites: Workshops 1-3
What Youβll Master
Take your experts from development to production by deploying them across multiple channels.1
Distribution Channels
Learn about different ways to deploy your experts
2
Embed Widgets
Add your expert to any website with simple code
3
API Integration
Connect your expert to applications via API
4
B-Bot Chat
Publish to the B-Bot mobile app
5
Custom Deployment
Advanced deployment strategies
Distribution Options
B-Bot provides multiple ways to share your experts:Embed Widget
Add to any website with a simple script tag
API Access
Full programmatic control via REST API
B-Bot Chat
Publish to the consumer chat app
Distribution Channels in Hub
Navigate to Channels
- Click Channels in the sidebar
- View existing channels or create new ones
Channel Types
| Channel | Best For | Setup Complexity |
|---|---|---|
| Web Embed | Websites, landing pages | β Easy |
| API | Custom apps, backends | βββ Advanced |
| B-Bot Chat | Mobile users | ββ Medium |
| Telegram | Community/support bots | ββ Medium |
| Slack | Team workspaces | ββ Medium |
Embed Widget
Creating an Embed Channel
1
Go to Channels
Navigate to Channels in the sidebar
2
Create New Channel
Click βCreate Distribution Channelβ
3
Select Embed
Choose βWeb Embedβ as the channel type
4
Configure Settings
Set up appearance and behavior
5
Get Code
Copy the embed code
Embed Code Example
Customization Options
Position
Position
Where the chat bubble appears:
bottom-right(default)bottom-lefttop-righttop-left
Colors
Colors
Brand your widget:
data-primary-color: Main button colordata-text-color: Text colordata-background-color: Chat background
Behavior
Behavior
Control widget behavior:
data-auto-open: Open automaticallydata-greeting: Welcome messagedata-show-branding: Show B-Bot logo
Size
Size
Customize dimensions:
data-width: Widget width (px)data-height: Widget height (px)
π― Exercise: Create Your First Embed
1
Create Test HTML
Create a simple HTML file:
2
Replace Channel ID
Add your channel ID from the Hub
3
Open in Browser
Test the embed locally
4
Customize
Try different color and position options
API Integration
Getting API Access
1
Create API Channel
Create a new channel with type βAPIβ
2
Generate API Key
Create an API key for authentication
3
Note Endpoints
Save the base URL and channel ID
API Endpoints
Create Thread
Start a new conversation
Send Message
Send a message
Get History
Retrieve conversation
Stream Response
Real-time streaming
Basic API Usage
- Python
- JavaScript
- cURL
Streaming Responses
For real-time responses, use Server-Sent Events:B-Bot Chat App
Publishing to B-Bot Chat
B-Bot Chat is the consumer-facing mobile app where users can discover and chat with published experts.1
Prepare Your Expert
Ensure your expert is well-tested and polished
2
Create B-Bot Chat Channel
Add a βB-Bot Chatβ distribution channel
3
Configure Public Profile
Set up how your expert appears in the app:
- Display name
- Description
- Category
- Tags
4
Set Pricing (Optional)
Configure if users pay per message or subscribe
5
Submit for Review
Your expert will be reviewed before going live
Public Profile Settings
| Field | Description | Tips |
|---|---|---|
| Display Name | Name shown to users | Keep it clear and memorable |
| Short Description | Brief summary | Focus on user benefits |
| Category | Classification | Choose the best fit |
| Tags | Searchable keywords | Add relevant terms |
| Profile Image | Expert avatar | Use a professional image |
Advanced Deployment
A2A (Agent-to-Agent) Protocol
Enable your expert to communicate with other agents:Webhooks
Receive notifications about conversations:Multi-Channel Strategy
Deploy across multiple channels:Monitoring & Analytics
Channel Metrics
Track performance across channels:| Metric | Description |
|---|---|
| Conversations | Total threads created |
| Messages | Messages exchanged |
| Response Time | Average response latency |
| Satisfaction | User ratings |
| Token Usage | AI tokens consumed |
Dashboard View
Navigate to Dashboard to see:- Usage statistics
- Popular queries
- Error rates
- User feedback
Security Considerations
API Keys
- Rotate keys regularly
- Use environment variables
- Never expose in frontend code
CORS
- Configure allowed origins
- Restrict embed domains
- Validate referrers
Rate Limiting
- Set request limits
- Implement cooldowns
- Monitor for abuse
Data Privacy
- Enable data deletion
- Configure retention
- Handle PII carefully
π― Challenge: Multi-Channel Deployment
Deploy your TechSupport AI across multiple channels:1
Create Web Embed
Set up an embed for a support website
2
Create API Channel
Build a simple integration
3
Test Both Channels
Verify consistent behavior
4
Monitor Analytics
Compare usage across channels
Key Takeaways
Multiple Channels
Deploy the same expert across different platforms
Easy Embedding
Simple code snippets for website integration
Full API Control
Complete programmatic access for custom apps
Mobile Ready
Publish to B-Bot Chat for consumer access