Agents बनाना

Agents बनाना

यह guide आपको Brevo MCP tools का उपयोग करके अपना पहला marketing agent बनाना सिखाएगी।

Prerequisites

शुरू करने से पहले आपके पास होना चाहिए:

  • Brevo MCP Server setup, configured और working
  • Claude Desktop, Claude Code, या MCP-compatible tool
  • Basic YAML knowledge

Agent Structure

हर agent एक markdown file है जिसमें YAML frontmatter है:

---
name: agent-name
description: Agent क्या करता है इसका brief description
version: 1.0.0
temperature: 0.3
max_tokens: 4096
tools:
- brevo_contacts
- brevo_email_campaign_management
triggers:
- schedule: "0 9 * * 1"
- event: cart_abandoned
permissions:
- contacts:read
- contacts:write
- email:send
---
# Agent Name
Agent के लिए natural language instructions यहाँ जाते हैं।
## आपकी Capabilities
1. Capability one
2. Capability two
## Rules
- Rule one
- Rule two

Step 1: अपना पहला Agent बनाएं

एक simple weekly newsletter agent बनाते हैं:

---
name: weekly-newsletter
description: हर सोमवार सुबह segmented newsletter भेजें
version: 1.0.0
temperature: 0.4
tools:
- brevo_contacts
- brevo_segments
- brevo_email_campaign_management
- brevo_templates
triggers:
- schedule: "0 9 * * 1"
---
# Weekly Newsletter Agent
हर सोमवार सुबह 9 बजे newsletter campaign execute करें।
## Strategy
1. Active subscribers segment query करें
2. Last week का best-performing content identify करें
3. Segment के लिए personalized subject line generate करें
4. Template से campaign create करें
5. Schedule करें अगले 30 मिनट के लिए
6. Delivery report log करें
## Rules
- ONLY opted-in subscribers को भेजें
- NEVER एक हफ्ते में same subscriber को दो बार भेजें
- Subject lines 50 characters से कम रखें

Step 2: Agent Test करें

Claude में paste करें:

नीचे दिया गया agent spec run करें:
[agent spec paste करें]
Test mode में run करें, actually कुछ भेजें नहीं,
लेकिन मुझे बताएं आप क्या करेंगे।

Step 3: Production में Deploy करें

triggers:
- schedule: "0 9 * * 1" # हर सोमवार 9 AM UTC
- webhook: "https://your-app.com/webhooks/newsletter"

Advanced Patterns

Multi-Step Sequences

---
name: onboarding-sequence
description: नए customers के लिए 5-step onboarding sequence
tools:
- brevo_contacts
- brevo_email_campaign_management
- brevo_templates
triggers:
- event: customer_created
---
# Onboarding Sequence Agent
नए customer registration पर 5-step onboarding sequence execute करें।
## Sequence
Day 0: Welcome email (तुरंत)
Day 1: Getting started guide
Day 3: Feature highlight #1
Day 7: Feature highlight #2 + tip
Day 14: Check-in + support offer
## Rules
- प्रत्येक email previous open check करने के बाद भेजें
- अगर unsubscribe हो तो sequence बंद करें
- Completion events track करें

अगले कदम

Subscribe to updates

developer-docs

Drop your email or phone number — we'll send you what matters next.

AI Assistant

Hi! Ask me anything about the docs.

Brevo के साथ मुफ्त में शुरू करें