Prerequisites
- •
User should have their Gmail connected. Verify with
tool list_app_toolswith sluggmail. - •
User should have their phone number added.
Protocol
- •Use
tool use_app_gmailtool withgmail-find-emailas the action, with the following props
python
{
"q": "after:<DATE>",
"maxResults": 100,
"withTextPayload": true
}
where <DATE> is the date two days ago in format YYYY-MM-DD
- •Identify the 5 most important emails. Consider the user's bio when determining which are most important. Also consider if the user has not read or not replied to the email (determined by examining the labels).
- •Summarize and provide suggestions for follow-ups. Keep it concise.
- •Use
tool send_sms_to_userto text the user your summary. - •Ask the user if they would like to set this up as an agent task to run daily. If so, use
tool create_scheduled_taskwithdelivery_method: "sms"and with instruction
markdown
Run `prompt Prompts/important-email-digest.prompt.md` but IGNORE step 4 and step 5.