Building an AI Project Manager to Automate My Agency Live



AI Summary

Video Summary: Automating a Technical Project Manager Role

  • Objective: Automate a technical project manager role in Slack, operating 24/7 for free (excluding token costs), with easy customization for any business.

Quick Demo Overview:

  • Scenario: The AI agent responds to a client’s issue in Slack.
  • Specialization: The agency creates custom AI systems.
  • Functionality: The agent asks for details and posts tasks to the development team in Notion.

Building the Slack Agent:

  • Tools Used:
    • Agency Swarm: A framework from GitHub.
    • Genesys agency: To speed up the process.
  • Agent Components:
    • Get Project Overview tool: Fetches project info from Notion.
    • Post Backlog Task tool: Posts tasks in Notion.

Notion API Integration:

  • Setup:
    • Create a Notion account and API key.
    • Connect the integration to Notion.
    • Adjust tools to work with Notion’s API.

Agent Logic:

  • Task Posting:
    • Ensure inputs make sense using validator functions.
    • Use a task template with default parameters and formatting.
    • Split markdown into segments for Notion’s content block format.

Firebase Integration:

  • Purpose: For integrating the agent in Slack.
  • Functionality:
    • Generate responses.
    • Save and retrieve thread data for continuity in conversations.

Slack App Creation:

  • Setup:
    • Create a new Slack app and configure OAuth permissions.
    • Use SlackBot package for app logic.
  • Bot Logic:
    • Trigger on app mentions or messages.
    • Determine if a response is needed.
    • Post messages in threads or start new ones.

Local Testing and Deployment:

  • Tools:
    • ngrok: To create a public URL for local testing.
    • Docker: To containerize the app.
  • Deployment:
    • Use Google Cloud and GitHub for automated deployments.
    • Adjust settings and add environment variables.

Final Steps:

  • Testing: Verify the bot responds correctly in Slack.
  • Deployment: Update Slack app configuration with the new URL.

Conclusion:

  • Result: A Slack app that automates project management tasks.
  • Availability: Code available in the Agency Swarm Lab repository.
  • Call to Action: Subscribe to the channel for more tutorials.