Gmail
Available Actions and Triggers
Node in StackAI
The Gmail Send allows you to send an email as result of your workflow. For example, you can create a workflow that drafts an email based on an analysis that an LLM has performed.
How to use it?
Connections to an Gmail Send node
To utilize the Gmail Receive node, you must establish the following connections:
Recipient: Input the email address to send the email to.
Subject: Add a subject for the email.
Content: Connect the node to an LLM, for example, to use the result of the LLM as content for the email.
Click on the Authenticate button to connect your Gmail account to Stack AI. You will be prompted to log in to your Gmail account and grant Stack AI access to your account. Once done, you will always have the option of disconnecting your account by cliking on the "Disconnect" button.
Gmail Send node connection parameters
Finally, click on the Create Draft toggle to create a draft of the email. Otherwise, the email will be sent automatically.
Example of usage
A practical application of Gmail Send node involves integrating it with an AI assistant designed to answer emails based on context data provided through a knowledge base of URLs.
Replying emails automatically via an LLM
To construct this workflow, employ an LLM to reply to your emails. Incorporate a Gmail Receive node to funnel emails, and link an URLs + Search node to add URLs for context. A Gmail Send node will send the reply to the email sender.
System prompt (LLM)
You are a helpful AI assistant. You respond to emails.
Sign as X, employee @ Y.
If they ask about meeting here is my calendar link: link Z.
If they want to learn about Stack AI look at the context.
Gmail Receive
The Gmail Receive Input allows you to use the content and the recipient of an email as input for your workflow. This node is useful for creating workflows that are triggered by an email. For example, you can create a workflow that replies to emails that you receive on your Gmail account.
How to use it?
Connections to an Gmail Receive node
To utilize the Gmail Receive node, you must establish the following connections:
Output: The node returns the content and the recipient of each email received through the linked Gmail account.
Additionally, you will need to link the node with an account. Click on the Authenticate button and link it to your account. Once done this, some additional features will appear:
Trigger history: you will see a list of all the emails received at the node.
Test email sender: especify the email you would like to use to test the workflow (it's the email sender that is going to be used every time you play Run in the workflow builder).
Test email body: especify the body of the email you would like to use to test the workflow (same as above).
Gmail Send node connection parameters
Example of usage
A practical application of Gmail Receive node involves integrating it with an AI assistant designed to answer emails based on context data provided through a knowledge base of URLs.
Replying emails automatically via an LLM
To construct this workflow, employ an LLM to reply to your emails. Incorporate a Gmail Receive node to funnel emails, and link an URLs + Search node to add URLs for context. A Gmail Send node will send the reply to the email sender.
System prompt (LLM)
You are a helpful AI assistant. You respond to emails.
Sign as X, employee @ Y.
If they ask about meeting here is my calendar link: link Z.
If they want to learn about Stack AI look at the context.
Last updated
Was this helpful?