Gmail Agent Node
Automate tasks and interactions using Gmail as an agent
Overview
The Gmail Agent Node is a powerful agent designed to automate tasks and interactions using Gmail. This node allows you to perform the following actions:
- sending/drafting emails
- managing email labels
- find emails from inbox
- reading emails and their attachments
Configuration Parameters
To set up the Gmail Agent Node, you need to authenticate with your Google account. Once authenticated, you can configure the node to perform specific actions based on your workflow requirements.
Node Configuration
-
Prompt:
Specify what the agent should do. For example,
Send an email to Mark (look through my inbox as needed), saying I will get back to him after reviewing the documents I received.
Find the last few emails from Jacob and summarize our conversations.
Given this email , classify the email and assign it to the appropriate gmail label that is configured.
Given this email , identify if it is legal related. If so, draft an reply and cc legal@team.com.
-
Tools
The tools given to the Gmail Agent. This allows us to limit what the agent can do to prevent undesirable actions by the agent.
Tool name Description Send Email Send email or reply Draft Email Create email draft Send Draft Send created draft Get Message Read email metadata (recipients, date, etc), labels, content, and its attachment file names Get Attachment Read attachment file content List Labels Get configured gmail labels Modify Labels Add and remove labels to and from emails Do not select the Send Email tool if you do not want the agent to accidentally send emails. Same goes for Delete Email
Expected Inputs and Outputs
-
Inputs:
- The node can accept text input data to include in the prompts. Usually, it is the email id from the gmail receive node.
-
Outputs:
- The node outputs the result of the action performed, such as confirmation of an email sent, details of emails processed, or status updates of inbox management actions.
Use Case Examples
-
Automated Email Campaigns:
Use the Gmail Agent Node to automate the sending of promotional emails to a list of recipients. You can configure the node to send personalized emails based on input data from your workflow.
-
Inbox Management:
Set up workflows to organize your Gmail inbox by labeling or archiving emails based on specific criteria. This can help maintain a clutter-free inbox and improve productivity.
-
Customer Interaction Automation:
Automate responses to customer inquiries by configuring the node to send predefined replies based on the content of incoming emails. This ensures prompt and consistent communication with customers.
Error Handling and Troubleshooting
-
Authentication Issues:
If the node fails to authenticate with Gmail, ensure that the correct credentials are provided and that the necessary permissions are granted.
-
Unsupported Model:
Ensure that the selected model supports function calling. If not, choose a compatible model from the available options.
If you encounter any issues with the Gmail Agent Node that are not covered in this documentation, please reach out to our support team for assistance.