What This Agent Does
The Smart Cafe Break Agent is an intelligent automation workflow that monitors your calendar throughout the day and intelligently recommends nearby cafes during gaps in your schedule. Every day at 12 PM, this agent checks your next calendar event, calculates travel time to that event, and if you have 30+ minutes of free time before it starts, it searches for nearby cafes and uses AI to provide personalized recommendations based on your preferences. If you're running tight on time, it sends you an urgent alert via Slack to keep you informed.
Key Benefits:
-
Reclaim productivity time by automatically identifying break opportunities in your schedule
-
Discover new cafes tailored to your preferences without manual research
-
Stay on schedule with intelligent travel time calculations and urgent alerts
-
Reduce decision fatigue with AI-powered recommendations delivered directly to Slack
-
Save 15-20 minutes daily on break planning and cafe selection
Target Use Cases:
- Busy professionals managing back-to-back meetings who need structured break time
- Remote workers wanting to add variety to their work environment
- Sales professionals with flexible schedules looking to optimize between-meeting time
- Anyone seeking a data-driven approach to work-life balance and self-care
Who Is It For
This agent is perfect for professionals with dynamic schedules who value both productivity and wellness. You'll benefit most if you:
- Use Google Calendar to manage your schedule
- Work in or near urban areas with multiple cafe options
- Prefer receiving notifications through Slack
- Want personalized recommendations based on your cafe preferences
- Need help maximizing unstructured time between commitments
The agent is particularly valuable for those managing high-frequency meeting schedules where identifying break opportunities requires constant manual checking.
Required Integrations
Google Calendar
Why it's needed: The agent retrieves your next scheduled event to determine when your next commitment begins, enabling accurate gap-time calculations.
Setup Steps:
- Navigate to Google Cloud Console
- Create a new project (or select an existing one)
- Enable the Google Calendar API:
- Search for "Calendar API" in the API library
- Click Enable
- Create OAuth 2.0 credentials:
- Go to Credentials → Create Credentials → OAuth 2.0 Client ID
- Choose Desktop application as the application type
- Download the JSON credentials file
- In TaskAGI, navigate to Integrations → Google Calendar
- Paste your OAuth credentials and authorize access to your calendar
Configuration in TaskAGI:
- Grant permission to read calendar events
- Ensure the service account has access to your primary calendar
- Test the connection by running a preview of the "Get Next Calendar Event" node
Google Sheets
Why it's needed: Stores your cafe preferences (dietary restrictions, ambiance preferences, price range) to personalize AI recommendations.
Setup Steps:
- Create a new Google Sheet with your preferences:
- Column A: Preference Category (e.g., "Dietary Restrictions", "Ambiance", "Price Range")
- Column B: Your Preferences (e.g., "Vegan options", "Quiet", "$-$$")
- Share the sheet with your TaskAGI service account email
- Copy the sheet URL from your browser
- In TaskAGI, go to Integrations → Google Sheets
- Authenticate with your Google account
- In the workflow, update the
sheet_url parameter with your actual sheet URL
Configuration in TaskAGI:
- The "Get User Preferences" node will automatically parse your sheet
- Ensure your sheet is publicly accessible or shared with TaskAGI's service account
- Test by running the node and verifying preferences appear in the output
Anthropic (Claude API)
Why it's needed: Powers the AI cafe recommendation engine that analyzes nearby cafes against your preferences and provides personalized suggestions.
Setup Steps:
- Visit Anthropic's Console
- Sign up or log in to your account
- Navigate to API Keys section
- Click Create Key and copy your API key
- In TaskAGI, go to Integrations → Anthropic
- Paste your API key in the authentication field
- Verify the model is set to
claude-sonnet-4-5-20250929
Configuration in TaskAGI:
- The AI node is pre-configured with a cafe concierge prompt
- The model uses your preferences and nearby cafe data to generate recommendations
- Response format is optimized for Slack message delivery
Slack
Why it's needed: Delivers cafe recommendations and urgent time-sensitive alerts directly to your workspace, keeping you informed without context-switching.
Setup Steps:
- Go to Slack API Dashboard
- Click Create New App → From scratch
- Name your app (e.g., "Cafe Break Agent") and select your workspace
- Navigate to OAuth & Permissions
- Under Scopes, add
chat:write permission
- Install the app to your workspace
- Copy your Bot User OAuth Token (starts with
xoxb-)
- In TaskAGI, go to Integrations → Slack
- Paste your OAuth token and select your default channel
Configuration in TaskAGI:
- Set the notification channel (e.g.,
#breaks or #personal)
- Test by sending a test message through the integration
- Verify the bot appears in your Slack workspace
Configuration Steps
Step 1: Review Workflow Notes
Start by reading through the informational nodes to understand the workflow structure:
-
Agent Name Options: Choose a memorable name for your agent
-
Category & Industry: Confirm this is set to "Productivity" or "Wellness"
-
Workflow Overview: Review the complete process flow
Step 2: Configure the Daily Trigger
The Daily Trigger (12 PM) node is pre-configured to execute at noon daily:
- Verify your timezone is correct in TaskAGI settings
- Adjust the time if needed (e.g., change to 1 PM for afternoon breaks)
- This trigger initiates the entire workflow automatically
Step 3: Set Up Workflow Configuration
In the Workflow Configuration node:
- Define your location (city or coordinates for cafe searches)
- Set your preferred travel method (driving, walking, transit)
- Specify the minimum gap time threshold (default: 30 minutes)
Step 4: Configure Calendar Event Retrieval
The Get Next Calendar Event node automatically:
- Queries your Google Calendar for the next upcoming event
- Extracts event time, location, and duration
- Passes this data to the travel time calculator
- No manual configuration needed; verify permissions are granted
Step 5: Calculate Travel Time
The Get Travel Time node uses Google Maps API to:
- Calculate travel duration from your current location to the next event
- Account for current traffic conditions
- Return travel time in minutes
Example data flow:
Next Event: Team Meeting at 2:30 PM
Current Time: 1:15 PM
Travel Time: 15 minutes
Step 6: Calculate Available Gap Time
The Calculate Gap Time node computes:
- Time until next event minus travel time
- Result determines if a cafe break is feasible
- Formula:
(Event Start Time - Current Time) - Travel Duration
Step 7: Conditional Branching
The Check If Gap >= 30 Minutes node creates two paths:
True Path (30+ minutes available):
- Proceeds to cafe search and recommendations
- Sends personalized cafe suggestion via Slack
False Path (less than 30 minutes):
- Skips to urgent alert
- Sends "Move Soon" notification to keep you on track
Step 8: Retrieve User Preferences
The Get User Preferences node reads your Google Sheet and extracts:
- Dietary restrictions (vegan, gluten-free, etc.)
- Ambiance preferences (quiet, social, work-friendly)
- Price range preferences
- Cuisine preferences
Step 9: Search Nearby Cafes
The Search Nearby Cafes node queries Google Places API to:
- Find cafes within 2 km of your location
- Return top 10 results with ratings and details
- Include address, hours, and user reviews
Step 10: Generate AI Recommendations
The AI Cafe Recommendation node processes:
- Your preferences from Google Sheets
- Nearby cafe options from Google Places
- Generates a personalized recommendation with reasoning
- Formats output for Slack delivery
Example output:
"Based on your preference for quiet, vegan-friendly spaces,
I recommend Bloom Cafe (4.8★). They have excellent oat milk
options and a dedicated work area. It's 8 minutes away."
Step 11: Send Notifications
Two Slack nodes handle messaging:
-
Send Slack Notification: Delivers cafe recommendations when time permits
-
Send Urgent Move Alert: Alerts you when time is tight
Testing Your Agent
Pre-Launch Testing
1. Verify All Integrations:
- Test Google Calendar connection by running "Get Next Calendar Event"
- Confirm Google Sheets loads your preferences correctly
- Validate Anthropic API with a test prompt
- Send a test message through Slack integration
2. Run a Test Execution:
- Click Test Run in the workflow editor
- Monitor each node's output in the execution panel
- Verify data flows correctly between nodes
3. Check Expected Results:
| Node |
Expected Output |
Success Indicator |
| Get Next Calendar Event |
Next event details |
Event title, time, location populated |
| Get Travel Time |
Travel duration in minutes |
Numeric value (e.g., "15 minutes") |
| Calculate Gap Time |
Available break time |
Positive number or "No gap" |
| Get User Preferences |
Your preferences list |
Dietary, ambiance, price preferences shown |
| Search Nearby Cafes |
Top 10 cafes with ratings |
Cafe names, ratings, addresses listed |
| AI Recommendation |
Personalized suggestion |
Coherent recommendation with reasoning |
| Slack Notification |
Message in your channel |
Message appears in designated Slack channel |
Post-Launch Monitoring
-
Week 1: Monitor daily executions and verify recommendations are relevant
-
Adjust preferences: Update your Google Sheet if recommendations don't match your taste
-
Refine timing: Adjust the 12 PM trigger if another time works better
-
Track usage: Note which recommended cafes you actually visit to improve future suggestions
Your Smart Cafe Break Agent is now ready to transform your schedule into opportunities for wellness and discovery!