Cfn marketing chatbot conversations

From masharratt/claude-flow-novice · View interactive version

Cfn marketing chatbot conversations is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Manages chatbot conversations for lead qualification, demo scheduling, and human escalation using n8n workflow automation.

How to use this skill

Skill file

CFN Marketing Chatbot Conversations Skill

Version: 1.0.0

Status: Active

Owner: CFN Marketing Team

Last Updated: 2025-10-29

Overview

Manages chatbot conversations for lead qualification, demo scheduling, and human escalation using n8n workflow automation.

Purpose

Enable automated customer conversations through chatbot interfaces (Intercom, Drift) with BANT-based lead qualification, appointment scheduling, and seamless human handoff.

Use Cases

  1. Lead Qualification: Score leads using BANT framework (60-point threshold)
  2. Demo Scheduling: Book appointments based on qualified lead status
  3. Human Escalation: Transfer complex conversations to human agents
  4. Conversation Tracking: Retrieve and analyze conversation history
  5. Real-time Engagement: Send context-aware messages (<2 seconds response time)

Operations

1. send-message.sh

Purpose: Send chatbot message to visitor

Parameters:

Exit Codes:

Example:

./operations/send-message.sh \
  --visitor-id "vis_12345" \
  --message "Hello! How can I help you today?" \
  --platform "intercom" \
  --context '{"page": "/pricing", "source": "website"}'

Response:

{
  "message_id": "msg_67890",
  "visitor_id": "vis_12345",
  "sent_at": "2025-10-29T14:30:00Z",
  "status": "delivered"
}

2. get-conversation-history.sh

Purpose: Retrieve conversation transcript

Parameters:

Exit Codes:

Example:

./operations/get-conversation-history.sh \
  --visitor-id "vis_12345" \
  --platform "intercom" \
  --limit 20

Response:

{
  "visitor_id": "vis_12345",
  "messages": [
    {
      "id": "msg_1",
      "sender": "bot",
      "text": "Hello! How can I help you today?",
      "timestamp": "2025-10-29T14:30:00Z"
    },
    {
      "id": "msg_2",
      "sender": "visitor",
      "text": "I need pricing information",
      "timestamp": "2025-10-29T14:31:00Z"
    }
  ],
  "total_messages": 12
}

3. qualify-lead.sh

Purpose: Score lead using BANT framework

Parameters:

BANT Scoring:

Qualification Threshold: 60 points

Exit Codes:

Example:

./operations/qualify-lead.sh \
  --visitor-id "vis_12345" \
  --budget 30 \
  --authority 20 \
  --need 15 \
  --timeline 10

Response:

{
  "visitor_id": "vis_12345",
  "qualified": true,
  "score": 75,
  "tier": "MQL",
  "breakdown": {
    "budget": 30,
    "authority": 20,
    "need": 15,
    "timeline": 10
  },
  "recommendation": "Schedule demo immediately"
}

4. schedule-demo.sh

Purpose: Book demo appointment

Parameters:

Exit Codes:

Example:

./operations/schedule-demo.sh \
  --visitor-id "vis_12345" \
  --email "contact@example.com" \
  --preferred-date "2025-11-05T14:00:00" \
  --timezone "America/New_York" \
  --notes "Interested in enterprise plan"

Response:

{
  "appointment_id": "apt_78901",
  "visitor_id": "vis_12345",
  "scheduled_at": "2025-11-05T14:00:00-05:00",
  "calendar_link": "https://calendly.com/demo/apt_78901",
  "confirmation_sent": true
}

5. transfer-to-human.sh

Purpose: Escalate conversation to human agent

Parameters:

Exit Codes:

Example:

./operations/transfer-to-human.sh \
  --visitor-id "vis_12345" \
  --platform "intercom" \
  --reason "Complex pricing question" \
  --priority "high"

Response:

{
  "transfer_id": "trf_45678",
  "visitor_id": "vis_12345",
  "agent_id": "agt_111",
  "agent_name": "Sarah Johnson",
  "transferred_at": "2025-10-29T14:35:00Z",
  "eta_minutes": 2
}

Environment Variables

# Required
N8N_BASE_URL=https://n8n.example.com
N8N_API_KEY=n8n_api_key_xxx

# Platform-specific
INTERCOM_ACCESS_TOKEN=intercom_token_xxx
DRIFT_API_TOKEN=drift_token_xxx

Performance Requirements

Error Handling

All operations return standardized JSON error responses:

{
  "error": "Visitor not found",
  "code": "VISITOR_NOT_FOUND",
  "timestamp": "2025-10-29T14:30:00Z",
  "visitor_id": "vis_12345"
}

Integration Points

Testing

# Test message sending
./operations/send-message.sh \
  --visitor-id "test_visitor" \
  --message "Test message" \
  --platform "intercom"

# Test BANT qualification
./operations/qualify-lead.sh \
  --visitor-id "test_visitor" \
  --budget 40 \
  --authority 20 \
  --need 20 \
  --timeline 15
# Expected: qualified=true, score=95, tier=MQL

# Test demo scheduling
./operations/schedule-demo.sh \
  --visitor-id "test_visitor" \
  --email "test@example.com" \
  --preferred-date "2025-11-01T10:00:00" \
  --timezone "America/Los_Angeles"

Maintenance

Related Skills

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.