Global AI Network
Agent Template v1.0.0

Smart Gap-Time Cafe Finder with AI & Slack

2+
Deployments
5m
Setup Time
Free
Pricing

Need custom configuration?

Our solution engineers can help you adapt this agent to your specific infrastructure and requirements.

Enterprise Grade Best Practices Production Optimized

INTEGRATED_MODULES

Anthropic
Anthropic
Google Calendar
Google Calendar
Google Sheets
Google Sheets
Slack
Slack
Step by Step

Setup Tutorial

mission-briefing.md

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:

  1. Navigate to Google Cloud Console
  2. Create a new project (or select an existing one)
  3. Enable the Google Calendar API:
    • Search for "Calendar API" in the API library
    • Click Enable
  4. Create OAuth 2.0 credentials:
    • Go to CredentialsCreate CredentialsOAuth 2.0 Client ID
    • Choose Desktop application as the application type
    • Download the JSON credentials file
  5. In TaskAGI, navigate to IntegrationsGoogle Calendar
  6. 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:

  1. 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", "$-$$")
  2. Share the sheet with your TaskAGI service account email
  3. Copy the sheet URL from your browser
  4. In TaskAGI, go to IntegrationsGoogle Sheets
  5. Authenticate with your Google account
  6. 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:

  1. Visit Anthropic's Console
  2. Sign up or log in to your account
  3. Navigate to API Keys section
  4. Click Create Key and copy your API key
  5. In TaskAGI, go to IntegrationsAnthropic
  6. Paste your API key in the authentication field
  7. 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:

  1. Go to Slack API Dashboard
  2. Click Create New AppFrom scratch
  3. Name your app (e.g., "Cafe Break Agent") and select your workspace
  4. Navigate to OAuth & Permissions
  5. Under Scopes, add chat:write permission
  6. Install the app to your workspace
  7. Copy your Bot User OAuth Token (starts with xoxb-)
  8. In TaskAGI, go to IntegrationsSlack
  9. 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!

Similar Solutions

Related Agents

Explore these powerful automation agents that complement your workflow.

Smart Lead Routing and Qualification with HubSpot

Smart Lead Routing and Qualification with HubSpot