Gmail Triage
Reads your unread Gmail, classifies each message by urgency, and posts a summary to Slack.
Gmail Triage
Fetch unread Gmail messages from the last 24 hours
action: gmail.search_messages
Reshape to only the fields needed for triage
transform
If inbox is empty, return early with zero count
if
Return empty inbox result
return
For each message, classify its urgency with an LLM
foreach
Classify this message as urgent, normal, or spam
action: anthropic.llm
Merge triage output with message metadata for downstream use
transform
Count the number of urgent messages
transform
If below threshold, return without posting to Slack
if
Return below-threshold result
return
Build the Slack summary message
transform
Post the triage summary to the Slack channel
action: slack.post_message
How to use this workflow
Install this workflow to add it to your Weldable account. Once installed, your AI agent can run it by name through the act tool. For example, ask your agent: "Run gmail-triage" and Weldable will handle the rest.
If the workflow requires integrations you have not connected yet, Weldable will prompt you to connect them before the first run. You only need to connect each service once, and it works across all your workflows automatically.
Workflows on Weldable run with durable execution: if a step fails or is interrupted, the run resumes from where it left off rather than starting over. Full run history and step-level logs are available in your dashboard so you can see exactly what happened at each stage.
You can inspect the workflow source on the Details tab, fork a copy to customize it for your needs, or export it to run on your own infrastructure. All workflows are written in an open Markdown and Python format with no lock-in.