Skip to main content

Real-World Workflows

Copy-paste ready workflows for common scenarios.

Workflow 1: Daily Standup Report

Generates and posts team standup to Slack:
// Run at 9am daily
schedule.scheduleJob('0 9 * * 1-5', async () => {
  const agent = new AgentCorex({apiKey: process.env.AGENT_COREX_API_KEY});

  // Get sprint info
  const sprint = await agent.executeTool({
    toolName: 'get-current-sprint',
    params: { board: 'PLATFORM' }
  });

  // Get issues completed
  const completed = await agent.executeTool({
    toolName: 'list-sprint-issues',
    params: { 
      sprintId: sprint.id,
      status: 'Done'
    }
  });

  // Get issues in progress
  const inProgress = await agent.executeTool({
    toolName: 'list-sprint-issues',
    params: {
      sprintId: sprint.id,
      status: 'In Progress'
    }
  });

  // Get blocked issues
  const blocked = await agent.executeTool({
    toolName: 'list-sprint-issues',
    params: {
      sprintId: sprint.id,
      status: 'Blocked'
    }
  });

  // Post to Slack
  await agent.executeTool({
    toolName: 'send-slack-message',
    params: {
      channel: '#standup',
      message: `
📊 Daily Standup - ${new Date().toLocaleDateString()}

✅ Completed (${completed.length})
${completed.map(i => `• ${i.key}: ${i.summary}`).join('\n')}

🔄 In Progress (${inProgress.length})
${inProgress.map(i => `• ${i.key}: ${i.summary}`).join('\n')}

🚫 Blocked (${blocked.length})
${blocked.map(i => `• ${i.key}: ${i.summary}`).join('\n')}
      `
    }
  });
});

Workflow 2: Incident Response

Automated incident handling: See Incident Response Example

Workflow 3: Weekly Release

Automated weekly release process: See Release Management Example

Workflow 4: Code Review Automation

Automated code analysis and review: See Code Review Example

Workflow 5: Customer Onboarding

Multi-step customer onboarding:
async function onboardCustomer(customer) {
  const agent = new AgentCorex({apiKey: process.env.AGENT_COREX_API_KEY});

  try {
    // Create Jira epic
    const epic = await agent.executeTool({
      toolName: 'create-jira-issue',
      params: {
        project: 'ONBOARD',
        type: 'Epic',
        title: `Onboarding: ${customer.name}`,
        description: `Customer: ${customer.email}\nPlan: ${customer.plan}`
      }
    });

    // Create GitHub org access
    const ghOrg = await agent.executeTool({
      toolName: 'add-github-org-member',
      params: {
        organization: 'company',
        user: customer.github_username,
        role: 'member'
      }
    });

    // Send Slack welcome
    await agent.executeTool({
      toolName: 'send-slack-message',
      params: {
        channel: `#onboarding`,
        message: `👋 Welcome ${customer.name}!\nGitHub: ${ghOrg.url}\nOnboarding: ${epic.key}`
      }
    });

    // Create Slack DM for onboarding guide
    const dm = await agent.executeTool({
      toolName: 'create-slack-dm',
      params: {
        user: customer.slack_id,
        message: `Welcome to the team! 🎉\n\nHere's your onboarding guide...`
      }
    });

    // Send welcome email
    await agent.executeTool({
      toolName: 'send-email',
      params: {
        to: customer.email,
        subject: `Welcome to our service, ${customer.name}!`,
        body: `Getting started guide...`
      }
    });

    console.log('✅ Customer onboarded');
    return { epic, ghOrg, dm };

  } catch (error) {
    console.error('❌ Onboarding failed:', error);
    
    // Alert admin
    await agent.executeTool({
      toolName: 'send-slack-message',
      params: {
        channel: '#operations',
        message: `⚠️ Failed to onboard ${customer.name}: ${error.message}`
      }
    });
  }
}

More Workflows

Check out the use cases section for more complete examples:

GitHub Automation

PRs, issues, deployments.

DevOps Automation

Deployments & incidents.

Jira + Slack

Team workflows.

Terraform

Infrastructure automation.

Next Steps

Execution Flows

Learn execution patterns.

API Reference

API documentation.

Try Live

Build your own workflow.

Ready to automate? Pick a workflow and customize for your needs! 🚀