Chatbot Deploy Step
๐ Deployment and Maintenance - Crafter.ai This comprehensive guide will walk you through the process of publishing your chatbot and managing it over time,...
๐ Deployment and Maintenance - Crafter.ai
This comprehensive guide will walk you through the process of publishing your chatbot and managing it over time, including updates, maintenance, and monitoring.
๐ฏ Overview of the Deploy Step

The Deploy step is the final phase where:
- ๐ง You verify the prerequisites for publication
- ๐ You publish the chatbot on production servers
- ๐ You obtain the code for integration into the site
- ๐ You manage updates and maintenance
โ Prerequisites for Deployment
Mandatory Technical Checks
1. Training Completed
โ
Status: "Trained"
โ
Knowledge Base: Populated and processed
โ
Q&A Base: Minimum 10 active Q&As
โ
Survey: 100% completed
2. Active and Valid Plan
โ
Subscription: Active and not expired
โ
Message Limit: Not reached (< 100% usage)
โ
Payment Status: Updated
โ
Team License: Valid for deployment
3. Complete Configuration
โ
Bot Info: Name and description set
โ
Features: Functionality configured
โ
Appearance: Customization completed
โ
Settings: Behaviors configured
Possible Pre-Deploy States
๐ข Ready to Deploy
All prerequisites are met
- "Deploy" button active
- Process can start immediately
- Estimated time: 3-8 minutes
๐ก Needs Update (Outdated)
Existing chatbot but modified
- Changes to the knowledge base
- Updates to Q&As
- New chatroom configurations
- Action: Click "Update Bot"
๐ด Cannot Deploy
Prerequisites not met
Possible causes and solutions:
๐ Incomplete Survey
Error: "Incomplete survey"
Solution:
1. Go to the Teaching Step
2. Complete all survey questions
3. Save and return to Deploy
๐ Bot Not Trained
Error: "The chatbot is not trained"
Solution:
1. Go to the Teaching Step
2. Click "Train Bot"
3. Wait for completion
4. Return to Deploy
๐ณ Plan Issues
Error: "Upgrade chatbot plan"
Solution:
1. Check active plan
2. Check message limits
3. Update payment if necessary
4. Contact team administrator
โ ๏ธ Message Limit Reached
Error: "Message usage limit reached"
Solution:
1. Upgrade current plan
2. Swap to available license
3. Wait for monthly counter reset
๐ Deployment Process
Deploying a New Chatbot
Step 1: Start Deployment
- Verify prerequisites: All checks must be โ
- Click "Deploy Chatbot": Start the process
- Confirm action: The process is not reversible during execution
Step 2: Deployment Phases
The system automatically performs these operations:
๐ Starting Server (30-60 seconds)
โโโ Allocating server resources
โโโ Configuring environment
โโโ Initializing services
๐ Loading Knowledge Base (1-3 minutes)
โโโ Uploading knowledge base
โโโ Indexing content
โโโ Optimizing search
๐ Update Models (2-4 minutes)
โโโ Loading AI models
โโโ Configuring NLP pipeline
โโโ Automatic testing
โ
Deploy Completed!
Estimated total time: 3-8 minutes depending on the size of the knowledge base
Step 3: Completion
At the end, you will receive:
- โ Confirmation of deployment completed
- ๐ Integration code for the website
- ๐ Demo page URL for testing
- ๐ Analytics dashboard link
Update of an Existing Chatbot

When an Update is Necessary
Update Models (after changes to the knowledge base):
- New Q&As added
- Changes to existing Q&As
- Upload new documents
- Changes to the survey
Update Chatroom (after UI changes):
- Change of colors or fonts
- New settings configurations
- Changes to system messages
- Updates to privacy policy
Types of Updates
Quick Update (Chatroom Only)
Time: 30-90 seconds
Includes:
โโโ Updating appearance
โโโ New UI settings
โโโ Chatroom configurations
Complete Update (Models + Chatroom)
Time: 2-5 minutes
Includes:
โโโ Retraining AI models
โโโ Updating knowledge base
โโโ New Q&As and content
โโโ All UI changes
Update with Server Restart
Time: 3-8 minutes
Includes:
โโโ Complete server restart
โโโ System version update
โโโ Architectural changes
โโโ Major configuration updates
๐ Integration into the Website
Integration Code

Standard Code
At the end of the deployment, you will receive code similar to this:
<!-- BEGIN CRAFTER CHATROOM -->
<script async src="YOUR_LINK"></script>
<!-- END CRAFTER CHATROOM -->
Where to Insert the Code
โ Correct Placement:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Your Site</title>
<!-- Other head tags -->
<!-- INSERT CHATBOT CODE HERE -->
<script>/* Crafter.ai Code */</script>
</head>
<body>
<!-- Page content -->
</body>
</html>
โ Incorrect Placements:
- In the
<body>โ May cause loading delays - After other scripts โ Possible conflicts
- In external JS files โ Timing issues
Integration Troubleshooting
Widget Not Appearing
Possible causes:
๐ Check 1: Browser Console
โ Open Developer Tools (F12)
โ Look for JavaScript errors
โ Verify script loading
๐ Check 2: Network tab
โ Verify download of bundle.js
โ Check response status (should be 200)
โ Ensure no CORS blocks
๐ Check 3: Bot Status
โ Go to the Crafter.ai dashboard
โ Verify status = "Deployed"
โ Check last successful deploy
Common solutions:
๐ง CORS Error:
โ Verify authorized domain in dashboard
โ Add domain in bot settings
๐ง Script Blocked:
โ Check ad-blocker
โ Verify Content Security Policy
โ Whitelist cdn.crafter.ai
๐ง Incorrect Bot ID:
โ Copy/paste bot ID from dashboard
โ Ensure no extra spaces
Widget Appears but Does Not Work
Debug steps:
1. Test on official demo page
2. Compare behavior
3. Check widget version (latest vs specific)
4. Test in incognito mode
5. Disable other extensions/scripts
๐ Monitoring and Analytics
Deployment Dashboard
Real-Time Server Status
๐ข Deployed: Server active and functioning
๐ก Updating: Update in progress
๐ด Offline: Server offline or error
๐ Outdated: Needs update
Logs and Diagnostics
Accessing logs:
- Deployment Dashboard โ "View Logs"
- Filter by date/time
- Levels: Info, Warning, Error
- Export for in-depth analysis
Advanced Analytics
Performance Metrics
๐ Success Rate: % of conversations successfully resolved
๐ User Satisfaction: Average user rating (1-5 stars)
๐ Average Session Duration: Average conversation duration
๐ Bounce Rate: % of users who leave immediately
๐ Conversion Rate: % of completed goals
Behavioral Analytics
๐ Most Asked Questions: Most frequent questions
๐ Unresolved Queries: Questions without answers
๐ User Flow Paths: Common conversation paths
๐ Drop-off Points: Where users abandon
๐ Peak Usage Times: Times of highest usage
Automated Reports
Configuring reports:
- Frequency: Daily, weekly, monthly
- Recipients: Team members via email
- Format: PDF executive summary or detailed Excel
- Custom metrics: Choose relevant KPIs
Alerting and Notifications
Automatic Alerts
โ ๏ธ Downtime Alert: Server offline > 2 minutes
โ ๏ธ High Error Rate: > 10% errors in 1 hour
โ ๏ธ Low Success Rate: < 70% conversations resolved
โ ๏ธ Usage Spike: Traffic > 300% normal
โ ๏ธ Storage Limit: Knowledge base > 90% limit
Notification Channels
- Email: Immediate alerts via email
- Slack/Teams: Integration with corporate chat
- Webhook: Custom system integration
- SMS: Critical alerts (optional)
๐ Managing Updates
Update Scheduling
Recommended Update Cycle
๐
Routine Updates:
โโโ Daily: Review new conversations
โโโ Weekly: Analyze misses and improvements
โโโ Monthly: Review performance and optimizations
โโโ Quarterly: Strategic review of knowledge base
๐ Reactive Updates:
โโโ Immediate: Critical errors or incorrect information
โโโ Within 24h: New FAQs or frequent questions
โโโ Within a week: Significant UX improvements
โโโ On request: New business features
Best Practice Timing
Recommended times for updates:
- ๐ Night hours: 02:00-05:00 (low traffic)
- ๐ Weekend: Saturday evening or Sunday morning
- ๐ซ Avoid: Peak hours, promotional days
Hotfix Deployment
For urgent fixes:
1. Identify critical problem
2. Quick fix and essential testing
3. Immediate deployment with intensive monitoring
4. Communication with team and stakeholders
5. Post-mortem and lessons learned
๐ ๏ธ Preventive Maintenance
Maintenance Routines
Daily Checks (5-10 minutes)
โ
Server Status: Check uptime and performance
โ
Error Logs: Review errors from the last 24h
โ
New Conversations: Analyze new conversations
โ
Usage Metrics: Check resource usage
Weekly Checks (30-45 minutes)
๐ Analytics Review: Weekly performance analysis
๐ Misses Analysis: Review unanswered questions
๐ง Knowledge Base Update: Content update
๐ฑ User Feedback: Review ratings and comments
๐งช Regression Testing: Test critical functionalities
Monthly Checks (2-3 hours)
๐ Performance Report: Complete monthly report
๐๏ธ Knowledge Base Cleanup: Remove obsolete content
๐ Workflow Optimization: Optimize complex flows
๐ฅ Team Training: Update team on new features
๐พ Backup Verification: Verify backups and recovery
Quarterly Checks (Half a day)
๐ฏ Strategic Review: Align business objectives
๐ Comprehensive Audit: Complete system audit
๐ง Infrastructure Review: Review architecture and scalability
๐ Training Data Review: Clean and optimize data
๐ก๏ธ Security Audit: Review security and compliance
Performance Optimization
Monitoring Key KPIs
๐ฏ Target Performance:
โโโ Response Time: < 2 seconds
โโโ Uptime: > 99.5%
โโโ Success Rate: > 85%
โโโ User Satisfaction: > 4.0/5.0
โโโ Error Rate: < 5%
Common Optimizations
โก Knowledge Base:
โโโ Removal of duplicates
โโโ Consolidation of similar Q&As
โโโ Optimization of indexing
โโโ Cleaning of obsolete content
๐ Server Performance:
โโโ Cache optimization
โโโ Database query optimization
โโโ CDN configuration
โโโ Resource scaling
๐ Common Troubleshooting
Deployment Issues
Deployment Fails
Error: "Deploy failed - server error"
Solutions:
1. Retry after 5-10 minutes
2. Check system status (status.crafter.ai)
3. Ensure plan limits are not exceeded
4. Contact support with error logs
Deployment Very Slow
Problem: Deployment takes > 15 minutes
Possible causes:
โโโ Very large knowledge base (> 100MB)
โโโ Many Q&As (> 500)
โโโ Temporary server overload
โโโ Network issues
Solutions:
โโโ Optimize knowledge base
โโโ Split deployment into multiple phases
โโโ Retry during low traffic hours
โโโ Check internet connection
Post-Deployment Issues
Chatbot Not Responding
Debug checklist:
1. Verify bot status = "Deployed"
2. Test on official demo page
3. Check integration code is correct
4. Verify authorized domain
5. Check browser console for errors
Incorrect Responses
Analysis:
1. Review conversation logs
2. Identify common error patterns
3. Verify knowledge base is updated
4. Check training completed correctly
5. Analyze Q&A conflicts
Degraded Performance
Investigation:
1. Monitor resource usage
2. Analyze response times
3. Verify database performance
4. Check concurrent user limits
5. Review error rate trends
โ Deployment and Maintenance Checklist
Pre-Deployment Checklist
- All prerequisites verified
- Complete testing performed
- Team notified of deployment
- Backup configuration saved
- Rollback plan prepared
- Monitoring configured
Post-Deployment Checklist
- Deployment completed successfully
- Integration code implemented
- Widget functioning correctly
- Analytics active and configured
- Team training completed
- Documentation updated
Maintenance Checklist
- Routine checks implemented
- Alerts and notifications configured
- Performance baseline established
- Backup and recovery tested
- Team responsibilities assigned
- Escalation procedures defined
๐ Next Steps
After successful deployment:
- [Analytics and Optimization]
- [Team Training]
- [Advanced Features]
โฑ๏ธ Estimated first deployment time: 15-30 minutes (including integration) ๐ฏ Objective: Live, stable, and monitored chatbot in production
