Building a Multi-App Automation Pipeline
Chaining Gmail → Slack → Google Sheets via agent-managed tool calls.
The Multi-App Pipeline
A multi-app pipeline connects several services into a single automated workflow. In this lesson we build: Gmail new email → agent reads and extracts action items → creates Trello card → sends Slack notification.
Pipeline Architecture
The pipeline has four stages:
- Trigger: Gmail push notification or polling detects new email
- Extract: LLM reads email and extracts action items
- Create: Trello API creates a card for each action item
- Notify: Slack API posts a summary message
Each stage is a separate function with clear inputs and outputs.
from dataclasses import dataclass, field
from typing import List
@dataclass
class Email:
id: str
sender: str
subject: str
body: str
@dataclass
class ActionItem:
title: str
description: str
due_date: str = None
@dataclass
class PipelineResult:
email_id: str
action_items: List[ActionItem] = field(default_factory=list)
trello_card_ids: List[str] = field(default_factory=list)
slack_message_ts: str = None
error: str = NoneAll lessons in this course
- Trigger-Action Agent Patterns
- Connecting Agents to Webhooks
- Scheduling and Cron-Based Agents
- Building a Multi-App Automation Pipeline