gmail
AI agent skill for reading, writing, drafting, and sending emails via Gmail using Safescript.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
AI agent skill for reading, writing, drafting, and sending emails via Gmail using Safescript.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Coder/integrator skill for building integrations, automations, and deploying services. Covers tech stack decisions (Deno Deploy, GitHub, InstantDB, prompt2bot, Supergreen), referencing the dedicated WhatsApp skill for WhatsApp integrations, webhook patterns, and communication guidelines for non-technical users.
AI agent skill for interacting with Google Docs and Google Sheets.
AI agent skill for interacting with Google Drive.
Make.com integration guidance for prompt2bot agents — regional APIs, module versions, and scenario blueprint scanning.
Create, query, and manage calendar events and meeting availability across Calendly, Google Calendar, and Microsoft 365 Calendar (Outlook). Covers event creation, searching events, free/busy availability, and booking. Triggers: calendar, event, meeting, schedule, scheduling, availability, free busy, booking, appointment, reminder, timezone, create event, Google Calendar, Outlook, Microsoft 365, Calendly.
Deno Deploy guidance and VM-less safescript tools for prompt2bot agents — REST API v2 app/env-var/revision operations, CLI usage, CI deployment, and logging.
استنادا إلى تصنيف SOC المهني
| name | gmail |
| description | AI agent skill for reading, writing, drafting, and sending emails via Gmail using Safescript. |
Allows bot to interact with the Gmail API to send emails and create drafts securely, with automatic RFC 1342 encoding of non-ASCII characters (e.g. Hebrew) in headers to prevent garbled text/mojibake.
Pass the configured secret name as googleToken when calling tools. Do not pass env var names (for example GOOGLE_TOKEN) as the token value.
All functions return { success, result, error }.
import { sendGmailEmail } from "./scripts/gmail.ss";
import { createGmailDraft } from "./scripts/gmail.ss";
export const myTask = async () => {
// Send email safely (subject line non-ASCII characters automatically encoded cleanly)
const sendRes = await sendGmailEmail(
"GOOGLE_ACCESS_TOKEN",
"recipient@example.com",
"הצעה להופעה אקוסטית של שיר אלוני - עדה'ס",
"<h1>היי!</h1><p>זהו גוף המייל.</p>"
);
};
Sends an HTML email directly through the Gmail API, properly encoding non-ASCII subject lines to avoid mojibake/garbled text.
googleToken: Name of the Gmail OAuth token secret.to: Recipient email address.subject: Email subject (automatically encoded to ASCII using UTF-8 Base64 RFC 1342).htmlBody: HTML content of the email body.Creates an email draft in the user's Gmail account, properly encoding non-ASCII subject lines to avoid mojibake/garbled text.
googleToken: Name of the Gmail OAuth token secret.to: Recipient email address.subject: Email subject (automatically encoded to ASCII using UTF-8 Base64 RFC 1342).htmlBody: HTML content of the email body.