Connect Pipedream to any IMAP email provider to trigger custom workflows.
Emit new event when a conversation reaches a specific state. See the docs
Emit new event when a conversation is tagged with a specific tag or any tag. See the documentation
Reply to a conversation by sending a message and appending it to the conversation. See the docs here.
Sends a new message from a channel. It will create a new conversation. See the docs here.
Using Pipedream's IMAP API, developers can automate interactions with their email inbox, enabling serverless workflows that perform actions based on incoming emails. This could include parsing email contents, triggering events upon receiving emails from specific senders, attaching labels, and much more. By leveraging IMAP, Pipedream can act as a bridge between your email and other services, streamlining processes that would otherwise require manual intervention.
import { once } from "events";
import imaps from "imap-simple";
import cycle from "cycle";
export default defineComponent({
props: {
imap: {
type: "app",
app: "imap",
}
},
async run({steps, $}) {
const { host, port, email, password } = this.imap.$auth;
const connection = await imaps.connect({
imap: {
host,
port,
user: email,
password,
tls: true,
tlsOptions: { servername: host },
authTimeout: 3000
},
});
const boxes = await connection.getBoxes();
// Filter out circular references to parents
const filteredBoxes = cycle.decycle(boxes);
$.export("results", filteredBoxes);
connection.end();
await once(connection.imap, "end");
},
})
The Front API empowers you to automate the handling of your team's email inbox, collaborate on conversations, and streamline communication workflows. By harnessing this API on Pipedream, you can craft custom integrations that trigger actions in Front in response to events, synchronize data across platforms, and augment your team's productivity with automated tasks. This can include creating or updating conversations and contacts, managing tags, or firing off custom automation rules within Front.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
frontapp: {
type: "app",
app: "frontapp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api2.frontapp.com/me`,
headers: {
Authorization: `Bearer ${this.frontapp.$auth.oauth_access_token}`,
},
})
},
})