Build a GitHub-to-Slack triage agent with Nango and Claude Agent SDK

Seb built a keyless agent that read 15 GitHub items, picked 5, and posted a Slack digest in 112.7s.

Used for
Work
Skill needed
Requires coding
Shown in video
Partial demo
Summary based on
Transcript
NangoClaude Agent SDK
Sebastian BuzduganWatch on YouTube

Connect AI Agents to 1,000+ APIs: I Built a GitHub to Slack Agent with Nango

Published Nov 24, 202610:2013,831 views384 likes

Key moments

  • 6:41Agent posts 5-item triage digest to Slack after 112.7s and 13 turns

What they made

Agent read 15 items (14 PRs, 1 issue), selected 5 with reasons, and posted them to Slack in 112.7 seconds over 13 turns with zero keys in the agent.

112.7s, 13 turns, 15 items read, 5 selected

6:41

How they did it

  1. Human3:28

    Set up GitHub and Slack integrations in Nango, overriding scopes per connection: GitHub gets read:user, Slack gets 5 scopes instead of the managed app's 65.

    Stated in video · Nango
  2. Human4:31

    Wrote connect.js (~39 lines) to create Nango Connect links so a user can authorize GitHub and Slack, keeping only the connection ID.

    Stated in video · Nango
  3. Human5:04

    Wrote agent.js (~79 lines) to POST to Nango's /sessions endpoint with tenant, a 7-tool allowlist, and 15-minute expiry, then hand the MCP URL to the Claude Agent SDK with built-in tools disabled.

    Stated in video · Claude Agent SDK
  4. AI6:07

    Agent searched and called GitHub and Slack tools, pulled items updated in the last 24 hours five at a time, and recovered from an empty Slack channel list by creating then re-listing channels.

    Stated in video · Claude Agent SDK
  5. AI6:41

    Agent wrote the triage summary and posted it to Slack; the session was then deleted so the token died.

    Stated in video · Nango

What you can reuse

  • Scope tools per connection and per session instead of granting broad managed-app scopes.
  • Keep API keys out of the agent by handing it only an MCP URL and a short-lived session token.
  • Cap tool output size (e.g., 5 items per call) to cut agent turns from 20 to 13.

Trade-offs

  • Instant GitHub App install link returned a GitHub 404.
  • Managed Slack bot is named NangoDevelopersOnlyNotForProduction, unsuitable for production.
  • Raw GitHub payloads are large; uncapped results pushed the agent to 20 turns.
  • Slack's first channel list came back empty in 2 of 3 runs; the agent self-recovered.
  • Demo used a fresh Slack workspace, not a real team.

AI-generated case summaries can contain mistakes. Report an error

Related cases