Global AI Network
Agent Template v1.0

Social Media Lead Processor with AI, Jira & Slack

Capture social media leads automatically, classify them with AI, store in Google Sheets, and notify your team via Slack and Jira—all in one intelligent workflow.

134+
Deployments
10m
Setup Time
Free
Pricing

Need custom configuration?

Our solution engineers can help you adapt this agent to your specific infrastructure and requirements.

Enterprise Grade Best Practices Production Optimized

INTEGRATED_MODULES

Google Sheets
Google Sheets
Jira
Jira
OpenAI
OpenAI
Slack
Slack
Step by Step

Setup Tutorial

mission-briefing.md

What This Agent Does

This Lead Management & Automation Workflow transforms incoming social media direct messages into organized, actionable leads while automatically generating weekly performance reports. The agent intelligently filters, classifies, and routes leads across your entire business infrastructure—from spreadsheet storage to project management systems to team notifications—all without manual intervention.

Key benefits and time savings:

  • Eliminate manual lead entry: Automatically capture and organize leads from social channels
  • Intelligent lead qualification: AI-powered classification ensures your team focuses on high-quality prospects
  • Real-time team visibility: Instant Slack notifications keep everyone informed of new opportunities
  • Centralized lead tracking: All leads stored in Google Sheets for easy analysis and reporting
  • Automated task creation: Jira tasks generated automatically for seamless workflow integration
  • Data-driven insights: Weekly reports provide actionable metrics on lead volume and quality trends

Target use cases:

  • Social media marketing teams managing high-volume lead inquiries
  • Sales organizations needing rapid lead qualification and routing
  • Customer acquisition teams tracking lead sources and conversion metrics
  • Service-based businesses automating initial lead assessment

Who Is It For

This workflow is ideal for growing teams and organizations that:

  • Receive frequent inquiries through social media channels
  • Need to qualify leads quickly without manual review
  • Want to maintain consistent lead tracking across multiple platforms
  • Require weekly performance visibility on lead generation efforts
  • Use Jira for project management and Slack for team communication
  • Benefit from centralized lead data in Google Sheets for analysis

Whether you're a startup scaling your sales process or an established company streamlining lead management, this agent adapts to your needs and grows with your business.

Required Integrations

OpenAI

Why it's needed: Powers intelligent lead classification using GPT-4o to analyze incoming messages and determine lead quality, relevance, and key characteristics.

Setup steps:

  1. Visit platform.openai.com and sign in to your account
  2. Navigate to API keys in the left sidebar
  3. Click Create new secret key
  4. Copy the generated API key immediately (you won't see it again)
  5. In TaskAGI, go to IntegrationsOpenAI
  6. Paste your API key in the API Key field
  7. Click Test Connection to verify authentication
  8. Save your integration

How to obtain API keys: OpenAI requires a paid account with billing set up. Visit platform.openai.com/account/billing/overview to add a payment method.

Configuration in TaskAGI: Once connected, the workflow automatically uses GPT-4o for lead classification. No additional configuration needed—the model is specified in the workflow node.

Google Sheets

Why it's needed: Serves as your centralized lead database, storing all captured leads and enabling historical analysis for weekly reporting.

Setup steps:

  1. Open Google Sheets and create a new spreadsheet
  2. Name it something descriptive like TaskAGI Lead Database
  3. Set up column headers in the first row: Date, Name, Email, Message, Classification, Quality Score
  4. Go to Share and set permissions to Editor for your TaskAGI service account
  5. Copy the sheet URL from your browser's address bar
  6. In TaskAGI, go to IntegrationsGoogle Sheets
  7. Click Authenticate with Google and follow the OAuth flow
  8. Grant TaskAGI permission to access your Google Sheets
  9. Return to your workflow and paste the sheet URL in the sheet_url parameter

How to obtain credentials: Google Sheets uses OAuth authentication—no API key needed. Simply authorize TaskAGI to access your Google account.

Configuration in TaskAGI: After authentication, you can reference your sheet URL in any Google Sheets node. The workflow will automatically append rows with lead data.

Jira

Why it's needed: Automatically creates tasks for qualified leads, ensuring your development or operations team can track and manage follow-up actions.

Setup steps:

  1. Log in to your Jira instance (Cloud or Server)
  2. Navigate to SettingsAPI tokens (Cloud) or ApplicationsAPI tokens (Server)
  3. Click Create API token
  4. Copy the generated token
  5. In TaskAGI, go to IntegrationsJira
  6. Enter your Jira Domain (e.g., yourcompany.atlassian.net)
  7. Enter your Email Address associated with your Jira account
  8. Paste your API Token
  9. Click Test Connection and verify success
  10. Save your integration

How to obtain API keys: Visit your Jira instance's settings. For Jira Cloud, go to id.atlassian.com/manage-profile/security/api-tokens.

Configuration in TaskAGI: Specify your Project Key (e.g., SALES) and Issue Type (e.g., Task) in the workflow node. The agent will create issues automatically.

Slack

Why it's needed: Delivers real-time notifications to your team when new leads arrive and sends weekly performance reports to keep everyone informed.

Setup steps:

  1. Go to api.slack.com/apps and click Create New App
  2. Choose From scratch and name your app TaskAGI Lead Agent
  3. Select your workspace
  4. Navigate to OAuth & Permissions in the left sidebar
  5. Under Scopes, add chat:write and channels:read
  6. Click Install to Workspace and authorize the app
  7. Copy your Bot User OAuth Token (starts with xoxb-)
  8. In TaskAGI, go to IntegrationsSlack
  9. Paste your Bot Token
  10. Click Test Connection and verify success
  11. Save your integration

How to obtain credentials: Create a Slack app in your workspace's app management portal. You'll need admin access to your Slack workspace.

Configuration in TaskAGI: Specify the Channel Name (e.g., #sales-leads or #weekly-reports) in each Slack node. The bot will post messages to these channels automatically.

Configuration Steps

Node-by-Node Configuration Guidance

1. Receive Social DM (Webhook Trigger) This node receives incoming messages from your social media channels. Configure the webhook URL in your social platform's settings to point to the TaskAGI endpoint provided. This is your workflow's entry point—every incoming message triggers the entire process.

2. Filter Lead Keywords Set up keyword filters to identify genuine leads. Example keywords: interested, pricing, demo, inquiry, contact. Configure the function to return true if keywords are found, allowing the workflow to continue. This prevents spam from clogging your system.

3. GPT Lead Classifier The AI analyzes filtered messages and returns a JSON object with:

  • summary: Brief description of the lead
  • quality_score: Rating from 1-10 indicating lead quality

Example prompt output:

{
  "summary": "Small business owner interested in automation tools",
  "quality_score": 8
}

4. Prepare Lead Data Transform the classified data into a structured format matching your Google Sheets columns. Map fields like sender name, email, message content, classification, and quality score.

5. Store Lead in Sheets Append the prepared data to your Google Sheets. Ensure your sheet_url is configured correctly. This creates a permanent record of all leads.

6. Create Jira Task For high-quality leads (quality_score > 6), automatically create a Jira task. Configure:

  • Project Key: Your sales or leads project
  • Issue Type: Task or Story
  • Summary: Use the AI-generated summary
  • Description: Include the original message and quality score

7. Notify Slack Send immediate notifications to your team. Format the message to include:

  • Lead name and contact info
  • Message summary
  • Quality score with visual indicator (🟢 high, 🟡 medium, 🔴 low)

8. Weekly Report Schedule Trigger every Monday at 9:00 AM. Configure the schedule interval to weekly with your preferred timezone.

9. Get All Leads Retrieve the complete lead history from Google Sheets for analysis.

10. Filter Recent Leads Extract leads from the past 7 days using date comparison functions.

11. Generate Report Stats Calculate metrics:

  • Total leads received
  • Average quality score
  • High-quality lead percentage
  • Lead source breakdown

12. Post Weekly Report Send a formatted summary to your #weekly-reports Slack channel with key metrics and trends.

Testing Your Agent

1. Run Test Execution

  1. Navigate to your workflow in TaskAGI
  2. Click Test in the top-right corner
  3. Provide sample data for the webhook trigger:
    {
      "sender": "John Smith",
      "email": "john@example.com",
      "message": "Hi! I'm interested in learning more about your automation tools. Can we schedule a demo?"
    }
    
  4. Click Execute Test

2. Verify at Each Step

  • After Filter Keywords: Confirm the message contains relevant keywords
  • After GPT Classification: Check that JSON output includes summary and quality_score
  • After Prepare Lead Data: Verify all fields are correctly mapped
  • After Store in Sheets: Open your Google Sheet and confirm the new row appears
  • After Create Jira Task: Check your Jira project for the new task
  • After Notify Slack: Verify the message appears in your configured channel

3. Expected Results and Success Indicators

Successful execution shows:

  • New row in Google Sheets with complete lead information
  • New Jira task created with descriptive title and details
  • Slack notification received with formatted lead summary
  • No errors in the execution log
  • Quality score accurately reflects lead relevance

Weekly report verification:

  • Report posts every Monday at scheduled time
  • Statistics accurately reflect leads from the past 7 days
  • Metrics are clearly formatted and easy to understand

Your lead management automation is now live and working for you!