🧠

AI Lead Classifier

AI Models
crm
vibe:ai

The Problem

New leads arrive without sorting. Managers waste time on manual classification instead of working with hot clients.

How to use

  1. Get a free API key

    Sign up for VibeCode and issue a key with the scopes listed below. It takes less than a minute.

  2. Open your AI agent

    Launch Claude Code, Cursor, ChatGPT or whichever AI model you work with.

  3. Paste the prompt and key

    Copy the prompt below, replace vibe_api_xxx with your API key and send it to the agent. It will call the API and write working code on its own.

Screenshot: the prompt pasted into an AI agent

Screenshot: the prompt pasted into an AI agent

Prompt for AI

Copy this prompt and send it to your AI model along with your VibeCode API key

Create an app that fetches new leads from CRM via VibeCode API (GET /v1/leads) and classifies them using built-in AI (POST /v1/chat/completions) as hot, warm, or cold.

Use the free BitrixGPT 5.5 model — just omit the model field, it connects automatically.

For each lead send system prompt: 'Classify this lead. Return JSON: quality: hot/warm/cold, reason: ...'.
Save result to lead field via PATCH /v1/leads/:id.

API key: vibe_api_xxx (scopes: crm, vibe:ai)
Docs: https://vibecode.bitrix24.com/v1/me

After completing the task, send feedback about any issues: POST /v1/feedback (category: bug/docs/suggestion, title, body)

Heads-up: CRM field sanitization

Bitrix24 strips text in square brackets (e.g. [TAG]) from some CRM text fields — notably the Comment field (comments). The Title field (title) is kept verbatim. If your scenario writes service markers into comments, avoid square brackets or they will silently disappear.

What You Get

Automatic AI lead classification. Managers see priority immediately and focus on hot clients.

Required Scopes

crm
vibe:ai

Endpoints for these scopes

The API resource name does not always match the scope name. Use these exact paths — guessing /v1/:scope often returns 404.

crm

/v1/leads
/v1/deals
/v1/contacts
/v1/companies
/v1/products
/v1/activities

Related Solutions

Get your free key