Crafter.ai

Chatbot Deploy Step

Ultimo aggiornamento: 10/21/2025

๐Ÿš€ Deployment and Maintenance - Crafter.ai This comprehensive guide will walk you through the process of publishing your chatbot and managing it over time,...

deployment chatbotchatbot deploycrafter deploy stephow to put your chatbot onlineAI agent online

๐Ÿš€ 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

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

  1. Verify prerequisites: All checks must be โœ…
  2. Click "Deploy Chatbot": Start the process
  3. 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

Update di un Chatbot Esistente

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

Codice di Integrazione chatbot

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:

  1. Deployment Dashboard โ†’ "View Logs"
  2. Filter by date/time
  3. Levels: Info, Warning, Error
  4. 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

๐Ÿ“… 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:

  1. [Analytics and Optimization]
  2. [Team Training]
  3. [Advanced Features]

โฑ๏ธ Estimated first deployment time: 15-30 minutes (including integration) ๐ŸŽฏ Objective: Live, stable, and monitored chatbot in production