โ† Back to AI & LLMs
AI & LLMs by @rita5fr

crewai-workflows

Execute AI-powered crew workflows for marketing content

0
Source Code

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):

export CREWAI_API_KEY="5aZyTFQJAAT03VPIII5zsIPcL8KTtdST"

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
  • target_audience (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
  • company_name (required) - Business or personal brand name

LLMs: Perplexity (research) + Gemini (content generation)
Response Time: 3-5 minutes โณ

Example:

scripts/call_crew.sh social_media \
  '{"industry": "hypnotherapy", "company_name": "Sidharth Mahto"}'

Note: This crew takes significantly longer due to comprehensive research and content generation phases.


Usage

Option 1: Using the Helper Script (Recommended)

cd crewai-workflows
scripts/call_crew.sh <crew_name> '<json_input>' [api_key]

Examples:

# Marketing crew
scripts/call_crew.sh marketing '{"topic": "sleep therapy for entrepreneurs", "target_audience": "startup founders"}'

# Support crew
scripts/call_crew.sh support '{"issue": "Client asking about session pricing"}'

# Analysis crew
scripts/call_crew.sh analysis '{"data_description": "Weekly session booking trends"}'

# Social media crew (takes 3-5 minutes)
scripts/call_crew.sh social_media '{"industry": "wellness coaching", "company_name": "Calm Mind Studio"}'

# With explicit API key
scripts/call_crew.sh marketing '{"topic": "mindfulness apps"}' "YOUR_API_KEY"

Option 2: Direct cURL

curl -X POST "https://crew.iclautomation.me/crews/<crew_name>/run" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $CREWAI_API_KEY" \
  -d '{"input": {...}}'

Response Format

All crews return structured JSON:

{
  "ok": true,
  "crew": "marketing",
  "trace_id": "abc123-def456",
  "result": {
    "workflow": "marketing",
    "output": "... the generated content ...",
    "input_summary": {...}
  },
  "error": null
}

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:

curl https://crew.iclautomation.me/health
# Expected: {"ok": true}

Future Expansion

When new crews are added to the server:

  1. Update the "Available Crews" section
  2. Add example usage to the helper script
  3. Document input parameters and response times

Server: https://crew.iclautomation.me
Authentication: API key via X-API-Key header
Last Updated: 2026-01-17