Files
admin b52318eeae feat: Add intelligent auto-router and enhanced integrations
- Add intelligent-router.sh hook for automatic agent routing
- Add AUTO-TRIGGER-SUMMARY.md documentation
- Add FINAL-INTEGRATION-SUMMARY.md documentation
- Complete Prometheus integration (6 commands + 4 tools)
- Complete Dexto integration (12 commands + 5 tools)
- Enhanced Ralph with access to all agents
- Fix /clawd command (removed disable-model-invocation)
- Update hooks.json to v5 with intelligent routing
- 291 total skills now available
- All 21 commands with automatic routing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-28 00:27:56 +04:00

2.1 KiB

title
title
Email to Slack: Automated Email Summaries

import ExpandableImage from '@site/src/components/ExpandableImage';

Email to Slack: Automated Email Summaries

Automatically summarize emails and send highlights to Slack channels.

Task: Summarize emails and send highlights to Slack

dexto --agent ./agents/examples/email_slack.yml

What it does

This example demonstrates multi-tool orchestration:

  1. Connect to email via Gmail MCP server
  2. Fetch recent unread emails
  3. Summarize content using LLM
  4. Send formatted summaries to Slack channel
  5. Mark emails as read

Requirements

  • Gmail access via Composio (SSE endpoint)
  • Slack MCP server (@modelcontextprotocol/server-slack)
  • Composio API setup for Gmail
  • Slack bot token
  • Agent configuration file

Setup

  1. Configure Gmail access:

    • Set up Composio for Gmail integration
    • Get your Composio endpoint URL
    • Configure authentication
  2. Get Slack token:

    • Create a Slack app
    • Add bot token scopes: chat:write, channels:read
    • Set SLACK_BOT_TOKEN and SLACK_TEAM_ID environment variables
  3. Configure agent:

# agents/examples/email_slack.yml
mcpServers:
  gmail:
    type: http
    url: "your-composio-url"

  slack:
    type: stdio
    command: npx
    args: ['-y', '@modelcontextprotocol/server-slack']
    env:
      SLACK_BOT_TOKEN: $SLACK_BOT_TOKEN
      SLACK_TEAM_ID: $SLACK_TEAM_ID
  1. Run the agent:
dexto --agent ./agents/examples/email_slack.yml

Customization

Modify the agent to:

  • Filter emails by sender or subject
  • Custom summary formats
  • Schedule periodic checks
  • Route to different Slack channels based on content
  • Add reactions or threading

Learn More