Gmail offers private and secure email by Google at no cost, for business and consumer accounts.
Emit new event for each attachment in a message received. This source is capped at 100 max new messages per run.
Emit new event when an email matching the search criteria is received. This source is capped at 100 max new messages per run.
Emit new event for each new email sent. (Maximum of 100 events emited per execution)
Generates content from text input using the Google Gemini API. See the documentation
Create a draft from your Google Workspace email account. See the documentation
Generates content from both text and image input using the Gemini API. See the documentation
Download an attachment by attachmentId to the /tmp directory. See the documentation
By connecting your personal Gmail account to Pipedream, you'll be able to incorporate email into whatever you're building with any of the thousands of apps that are available on Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gmail: {
type: "app",
app: "gmail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.gmail.$auth.oauth_access_token}`,
},
})
},
})
The Google Gemini API is a cutting-edge tool from Google that enables developers to leverage AI models like Imagen and MusicLM to create and manipulate images and music based on textual descriptions. With Pipedream, you can harness this API to automate workflows that integrate AI-generated content into a variety of applications, from generating visuals for social media posts to composing background music for videos. Pipedream's serverless platform allows you to connect Google Gemini API with other apps to create complex, event-driven workflows without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_gemini: {
type: "app",
app: "google_gemini",
}
},
async run({steps, $}) {
const data = `{{your_promptt}}`;
//E.g. {"contents":[{"parts":[{"text":"Write a story about a magic backpack"}]}]}
return await axios($, {
method: "POST",
url: `https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent`,
headers: {
"Content-Type": "application/json",
},
params: {
key: `${this.google_gemini.$auth.api_key}`,
},
data
})
},
})