Gmail

Send, reply, search, and read emails in Gmail. Create drafts, request approvals, and manage your inbox. In Appbricx, your workflows and server functions call it by name once it is connected.

What you can do

7 actions, each one call from a workflow or a server function. Triggers come from your app: a row changing, a schedule or a webhook.

  • Create Draft Replycreate_draft_reply
    Creates a draft reply to an existing email.
  • Get Emailgmail_get_mail
    Get an email via Id.
  • Find Emailgmail_search_mail
    Find emails using advanced search criteria. At least one search filter (from, to, subject, label, category, date, content, or attachment) is required.
  • Reply to Emailreply_to_email
    Reply to an existing email.
  • Request Approval in Emailrequest_approval_in_mail
    Send approval request email and then wait until the email is approved or disapproved
  • Send Emailsend_email
    Send an email through a Gmail account
  • Custom API Callcustom_api_call
    Make a custom API call to a specific endpoint

Set it up

About two minutes, once per project or once for the whole workspace.

  1. Open Integrations in the builder

    Backend panel, Integrations tab, then Gmail. To connect it for every project, use Workspace settings, Integrations.

  2. Sign in to Gmail

    You sign in to Gmail and approve access. Appbricx keeps the tokens, encrypted, and refreshes them.

    • https://www.googleapis.com/auth/gmail.send
    • https://www.googleapis.com/auth/gmail.readonly
    • https://www.googleapis.com/auth/gmail.compose

    This uses an OAuth app: the platform's, or your own from the admin panel, and you can bring your own credentials.

  3. Call an action

    From a workflow, by integration id and action name. The call answers with success, output and, when it fails, the reason.

    Workflow
    // .workflow.js (native ctx)
    export async function run(ctx) {
      const res = await ctx.integrations.invoke("gmail", "create_draft_reply", {
        "message_id": "<message_id>",
        "reply_type": "reply",
        "body_type": "plain_text",
        "include_original_message": true
      });
      if (!res.success) throw new Error(res.error);
      ctx.log.info("Gmail answered", { output: res.output });
    }

Gmail and its logo are trademarks of their owner, shown only to identify the service this integration connects to. Their use does not imply endorsement by, or affiliation with, that company.

Connect Gmail once. Every workflow can use it.