Automate Gmail with TypeScript
Send, search, label, draft, reply to, and forward Gmail messages. Trigger work from new mail, sent mail, and label changes.
import { automation } from "automate.ax"
import { gmail } from "automate.ax/gmail"
export default automation("Acknowledge new email", () => {
const email = gmail.onNewEmail()
gmail.replyToMessage({
messageId: email.messageId,
text: "Thanks. We received your message.",
})
})What you can do
Actions
- Send, draft, reply to, and forward messages
- Search messages, threads, and drafts
- Manage labels, stars, Spam, Trash, and read state
- Read complete MIME bodies and attachments
Triggers
- New inbox email
- Email sent
- Label added
- Label removed