logoRocketFlow

Troubleshooting

Common issues and solutions for RocketFlow

Troubleshooting Guide

This guide helps you resolve common issues with RocketFlow chatbot integration and usage.

Widget Not Appearing

Issue: Chatbot widget doesn't show up on your website

Possible Causes & Solutions:

  1. Incorrect Chatbot ID

    <!-- ❌ Wrong -->
    <script src="https://cdn.getrocketflow.io/widget.js" 
            data-chatbot-id="wrong-id">
    </script>
    
    <!-- ✅ Correct -->
    <script src="https://cdn.getrocketflow.io/widget.js" 
            data-chatbot-id="your-actual-chatbot-id">
    </script>
  2. Script Loading Issues

    • Ensure the script loads after the DOM is ready
    • Check for JavaScript errors in browser console
    • Verify the CDN URL is accessible
  3. CSS Conflicts

    /* Add this to override conflicting styles */
    .rocketflow-widget {
      z-index: 9999 !important;
      position: fixed !important;
    }
  4. Ad Blockers

    • Some ad blockers may block the widget
    • Test in incognito mode or with ad blockers disabled
    • Consider using a custom domain for the widget script

Chat Not Responding

Issue: Users can send messages but get no response

Check These:

  1. Chatbot Status

    • Verify your chatbot is active in the dashboard
    • Check if training is complete
    • Ensure knowledge sources are properly configured
  2. API Limits

    • Check your API usage in the dashboard
    • Verify you haven't exceeded rate limits
    • Upgrade your plan if needed
  3. Network Issues

    • Test API connectivity: curl https://api.getrocketflow.io/v1/health
    • Check firewall settings
    • Verify SSL certificates

Poor Response Quality

Issue: Chatbot gives irrelevant or incorrect answers

Solutions:

  1. Improve Training Data

    • Add more relevant content to knowledge sources
    • Remove outdated or incorrect information
    • Use high-quality, well-structured content
  2. Optimize Content Structure

    # Good content structure
    
    ## Product Information
    Our product X does Y and Z.
    
    ## Pricing
    Basic plan: $10/month
    Pro plan: $25/month
  3. Adjust Settings

    • Increase response length in chatbot settings
    • Adjust response style (formal vs casual)
    • Enable/disable specific features

Integration Issues

React/Next.js Integration

Common Issues:

  1. Hydration Mismatch

    // ❌ This can cause hydration issues
    <RocketFlowWidget chatbotId="your-id" />
    
    // ✅ Use dynamic import for client-side only
    import dynamic from 'next/dynamic';
    
    const RocketFlowWidget = dynamic(
      () => import('@rocketflow/react').then(mod => mod.RocketFlowWidget),
      { ssr: false }
    );
  2. TypeScript Errors

    // Install types if available
    npm install @types/rocketflow-react
    
    // Or create your own types
    declare module '@rocketflow/react' {
      export interface RocketFlowWidgetProps {
        chatbotId: string;
        position?: string;
      }
    }

WordPress Integration

Plugin Issues:

  1. Plugin Not Activating

    • Check PHP version compatibility (7.4+)
    • Verify file permissions
    • Check for plugin conflicts
  2. Widget Not Showing

    • Clear WordPress cache
    • Check theme compatibility
    • Verify shortcode usage: [rocketflow id="your-chatbot-id"]

Performance Issues

Issue: Slow loading or response times

Optimization Tips:

  1. Script Loading

    <!-- Load script asynchronously -->
    <script src="https://cdn.getrocketflow.io/widget.js" 
            data-chatbot-id="your-id"
            async>
    </script>
  2. CDN Optimization

    • Use a CDN for your website
    • Enable gzip compression
    • Optimize images and assets
  3. API Optimization

    // Implement request debouncing
    let timeoutId;
    function debouncedRequest(message) {
      clearTimeout(timeoutId);
      timeoutId = setTimeout(() => {
        sendMessage(message);
      }, 300);
    }

Analytics Issues

Issue: Analytics not showing data

Check These:

  1. Tracking Setup

    • Verify analytics is enabled in dashboard
    • Check if tracking code is properly installed
    • Ensure cookies are enabled
  2. Data Processing

    • Analytics data may take up to 24 hours to appear
    • Check date range in analytics dashboard
    • Verify chatbot is receiving traffic

Security Concerns

Issue: Security warnings or blocked requests

Solutions:

  1. HTTPS Requirements

    • Ensure your website uses HTTPS
    • Update any HTTP references to HTTPS
    • Check SSL certificate validity
  2. CORS Issues

    // If making direct API calls, handle CORS
    fetch('https://api.getrocketflow.io/v1/chat', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer YOUR_API_KEY'
      },
      mode: 'cors'
    });
  3. Content Security Policy

    <!-- Add to your CSP header -->
    <meta http-equiv="Content-Security-Policy" 
          content="script-src 'self' https://cdn.getrocketflow.io; 
                   connect-src 'self' https://api.getrocketflow.io;">

Debugging Tools

Browser Developer Tools

  1. Console Logging

    // Enable debug mode
    window.RocketFlow = {
      debug: true,
      onError: function(error) {
        console.error('RocketFlow Error:', error);
      }
    };
  2. Network Tab

    • Check for failed requests
    • Verify API responses
    • Monitor request timing

API Testing

# Test API connectivity
curl -X GET https://api.getrocketflow.io/v1/health

# Test chatbot response
curl -X POST https://api.getrocketflow.io/v1/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Hello",
    "chatbot_id": "your-chatbot-id",
    "session_id": "test-session"
  }'

Getting Help

Before Contacting Support

  1. Check Documentation

    • Review relevant documentation sections
    • Check API reference for correct usage
    • Look for recent updates or changes
  2. Gather Information

    • Browser console errors
    • Network request logs
    • Chatbot configuration
    • Steps to reproduce the issue
  3. Test in Different Environments

    • Different browsers
    • Incognito/private mode
    • Different devices
    • Different networks

Contact Support

When contacting support, include:

  • Issue Description: Clear description of the problem
  • Expected Behavior: What should happen
  • Actual Behavior: What actually happens
  • Steps to Reproduce: Detailed steps
  • Environment: Browser, OS, device details
  • Error Messages: Any error messages or logs
  • Chatbot ID: Your chatbot identifier (not API key)

Support Channels:

Common Error Messages

Error MessageCauseSolution
"Chatbot not found"Invalid chatbot IDVerify chatbot ID in dashboard
"Rate limit exceeded"Too many requestsWait or upgrade plan
"Unauthorized"Invalid API keyCheck API key in settings
"Widget failed to load"Script loading issueCheck network and CDN
"No response from chatbot"Training incompleteComplete chatbot training

Best Practices

  1. Regular Testing

    • Test chatbot responses regularly
    • Monitor analytics for issues
    • Update content as needed
  2. Performance Monitoring

    • Monitor response times
    • Check error rates
    • Optimize based on usage patterns
  3. Content Maintenance

    • Keep knowledge sources updated
    • Remove outdated information
    • Add new content based on user questions
  4. Security

    • Use HTTPS everywhere
    • Keep API keys secure
    • Monitor for suspicious activity

Last updated on