CrewAI Workflows Skill
Execute specialized AI crew workflows for content generation, analysis, and support tasks. All crews run on a dedicated server with production-grade LLMs.
Prerequisites
Set the API key as an environment variable (recommended):
CODEBLOCK0
Or pass it directly when calling the helper script.
Available Crews
1. Marketing Crew 📢
Generate marketing content, taglines, and campaign copy.
Use for:
- - Product/service taglines
- Marketing copy for ads or landing pages
- Campaign messaging
- Value propositions
Input:
- -
topic (required) - What to create marketing content about - INLINECODE1 (optional) - Who the content is for
LLM: DeepSeek
Response Time: 3-10 seconds
Example:
scripts/call_crew.sh marketing \
'{"topic": "hypnotherapy for better sleep", "target_audience": "working professionals with insomnia"}'
2. Support Crew 🎧
Handle customer support inquiries with AI-generated responses.
Use for:
- - Responding to customer questions
- Drafting support emails
- Handling common inquiries
- Escalation guidance
Input:
- -
issue (required) - The customer issue or question
LLM: DeepSeek
Response Time: 3-10 seconds
Example:
scripts/call_crew.sh support \
'{"issue": "Client wants to reschedule their hypnotherapy session"}'
3. Analysis Crew 📊
Analyze business data and provide actionable insights.
Use for:
- - Data interpretation
- Trend analysis
- Performance metrics review
- Business intelligence
Input:
- -
data_description (required) - Description of the data to analyze
LLM: DeepSeek
Response Time: 3-10 seconds
Example:
scripts/call_crew.sh analysis \
'{"data_description": "Monthly client retention rates for Q4 2025"}'
4. Social Media Crew ⭐ 📱
Generate comprehensive 30-day social media content calendars with daily posts, captions, and hashtags.
Use for:
- - Social media planning
- Content calendar creation
- Multi-platform content strategy
- Monthly content batches
Input:
- -
industry (required) - The business industry/niche - INLINECODE5 (required) - Business or personal brand name
LLMs: Perplexity (research) + Gemini (content generation)
Response Time: 3-5 minutes ⏳
Example:
CODEBLOCK4
Note: This crew takes significantly longer due to comprehensive research and content generation phases.
Usage
Option 1: Using the Helper Script (Recommended)
CODEBLOCK5
Examples:
CODEBLOCK6
Option 2: Direct cURL
CODEBLOCK7
Response Format
All crews return structured JSON:
CODEBLOCK8
Extract the output: The actual generated content is in result.output.
Best Practices
- 1. Set timeouts appropriately:
- Marketing/Support/Analysis: 30-60 seconds
- Social Media: 5-10 minutes
- 2. Check API key: Ensure
CREWAI_API_KEY environment variable is set or pass explicitly
- 3. Handle errors: Check the
error field in responses
- 4. Social Media crew: Expect 3-5 minutes response time; don't interrupt
- 5. Batch requests: For multiple similar tasks, consider running them sequentially
Health Check
Verify the CrewAI server is running:
CODEBLOCK9
Future Expansion
When new crews are added to the server:
- 1. Update the "Available Crews" section
- Add example usage to the helper script
- Document input parameters and response times
Server: https://crew.iclautomation.me
Authentication: API key via
X-API-Key header
Last Updated: 2026-01-17
CrewAI 工作流技能
执行专门的AI团队工作流,用于内容生成、分析和支持任务。所有团队均在配备生产级大语言模型的专用服务器上运行。
前置条件
将API密钥设置为环境变量(推荐):
bash
export CREWAIAPIKEY=5aZyTFQJAAT03VPIII5zsIPcL8KTtdST
或在调用辅助脚本时直接传入。
可用团队
1. 营销团队 📢
生成营销内容、标语和广告文案。
适用场景:
- - 产品/服务标语
- 广告或落地页的营销文案
- 活动宣传信息
- 价值主张
输入参数:
- - topic(必填)- 需要创建营销内容的主题
- target_audience(可选)- 目标受众
大语言模型: DeepSeek
响应时间: 3-10秒
示例:
bash
scripts/call_crew.sh marketing \
{topic: 改善睡眠的催眠疗法, target_audience: 患有失眠症的职场人士}
2. 支持团队 🎧
通过AI生成的回复处理客户支持咨询。
适用场景:
输入参数:
大语言模型: DeepSeek
响应时间: 3-10秒
示例:
bash
scripts/call_crew.sh support \
{issue: 客户希望重新安排他们的催眠治疗课程}
3. 分析团队 📊
分析业务数据并提供可执行的洞察。
适用场景:
输入参数:
- - data_description(必填)- 待分析数据的描述
大语言模型: DeepSeek
响应时间: 3-10秒
示例:
bash
scripts/call_crew.sh analysis \
{data_description: 2025年第四季度月度客户留存率}
4. 社交媒体团队 ⭐ 📱
生成包含每日帖子、文案和话题标签的30天社交媒体内容日历。
适用场景:
- - 社交媒体规划
- 内容日历创建
- 多平台内容策略
- 月度内容批次
输入参数:
- - industry(必填)- 业务行业/细分领域
- company_name(必填)- 企业或个人品牌名称
大语言模型: Perplexity(研究)+ Gemini(内容生成)
响应时间: 3-5分钟 ⏳
示例:
bash
scripts/callcrew.sh socialmedia \
{industry: 催眠疗法, company_name: Sidharth Mahto}
注意: 由于需要全面的研究和内容生成阶段,此团队耗时显著更长。
使用方法
方式一:使用辅助脚本(推荐)
bash
cd crewai-workflows
scripts/call_crew.sh <团队名称> [api密钥]
示例:
bash
营销团队
scripts/call
crew.sh marketing {topic: 面向企业家的睡眠疗法, targetaudience: 初创公司创始人}
支持团队
scripts/call_crew.sh support {issue: 客户询问课程定价}
分析团队
scripts/call
crew.sh analysis {datadescription: 每周课程预订趋势}
社交媒体团队(耗时3-5分钟)
scripts/call
crew.sh socialmedia {industry: 健康指导, company_name: 静心工作室}
显式传入API密钥
scripts/call
crew.sh marketing {topic: 正念应用} YOURAPI_KEY
方式二:直接使用cURL
bash
curl -X POST https://crew.iclautomation.me/crews/<团队名称>/run \
-H Content-Type: application/json \
-H X-API-Key: $CREWAIAPIKEY \
-d {input: {...}}
响应格式
所有团队均返回结构化JSON:
json
{
ok: true,
crew: marketing,
trace_id: abc123-def456,
result: {
workflow: marketing,
output: ... 生成的内容 ...,
input_summary: {...}
},
error: null
}
提取输出内容: 实际生成的内容位于 result.output 中。
最佳实践
- 1. 合理设置超时时间:
- 营销/支持/分析团队:30-60秒
- 社交媒体团队:5-10分钟
- 2. 检查API密钥: 确保已设置 CREWAIAPIKEY 环境变量,或显式传入
- 3. 处理错误: 检查响应中的 error 字段
- 4. 社交媒体团队: 预计响应时间为3-5分钟,请勿中断
- 5. 批量请求: 对于多个相似任务,建议按顺序执行
健康检查
验证CrewAI服务器是否运行:
bash
curl https://crew.iclautomation.me/health
预期结果:{ok: true}
未来扩展
当服务器新增团队时:
- 1. 更新可用团队部分
- 在辅助脚本中添加示例用法
- 记录输入参数和响应时间
服务器: https://crew.iclautomation.me
认证方式: 通过 X-API-Key 头传递API密钥
最后更新: 2026-01-17