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-namedescription: Agent क्या करता है इसका brief descriptionversion: 1.0.0temperature: 0.3max_tokens: 4096tools: - brevo_contacts - brevo_email_campaign_managementtriggers: - schedule: "0 9 * * 1" - event: cart_abandonedpermissions: - contacts:read - contacts:write - email:send---
# Agent Name
Agent के लिए natural language instructions यहाँ जाते हैं।
## आपकी Capabilities
1. Capability one2. Capability two
## Rules
- Rule one- Rule twoStep 1: अपना पहला Agent बनाएं
एक simple weekly newsletter agent बनाते हैं:
---name: weekly-newsletterdescription: हर सोमवार सुबह segmented newsletter भेजेंversion: 1.0.0temperature: 0.4tools: - brevo_contacts - brevo_segments - brevo_email_campaign_management - brevo_templatestriggers: - 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-sequencedescription: नए customers के लिए 5-step onboarding sequencetools: - brevo_contacts - brevo_email_campaign_management - brevo_templatestriggers: - event: customer_created---
# Onboarding Sequence Agent
नए customer registration पर 5-step onboarding sequence execute करें।
## Sequence
Day 0: Welcome email (तुरंत)Day 1: Getting started guideDay 3: Feature highlight #1Day 7: Feature highlight #2 + tipDay 14: Check-in + support offer
## Rules- प्रत्येक email previous open check करने के बाद भेजें- अगर unsubscribe हो तो sequence बंद करें- Completion events track करेंअगले कदम
- Agent Specification, Complete format reference
- Brevo MCP Server, Available tools
- Shopify + Brevo, Integration example