Skip to content

Connect Gmail to X

Email is where many people already review and keep records, and X is where they want to be seen. Connecting Gmail and X lets you approve posts by email, get confirmations of what went out, and receive a morning summary of what accounts you follow have been saying.

Build your own

Build any Gmail and X automation you can describe

The ideas above are ready-made starting points, not a fixed list. Describe what should happen between Gmail and X in your own words, with your conditions, other apps or an AI step, and your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

For example, ask your assistant

Only turn emails labelled "share" into X drafts, and skip any that contain the word "confidential".

If I do not reply to a draft within 24 hours, discard it and do not post.

Use cases

Why people connect Gmail and X

How the two apps work together

  • A check every few minutes reads Gmail for labelled emails or approval replies.
  • The script writes X posts with AI and sends drafts from your Gmail address.
  • Approved posts are published to X and the link is emailed back.
  • Writers turning emails into posts

    Newsletters and notes in Gmail are turned into X posts. Ideas already written get shared.

  • Owners approving posts by email

    Drafts arrive by email and are posted after a reply. No need to log in to X.

  • Analysts sharing daily updates

    A daily market or metrics email is turned into a short X post. Followers get regular updates.

  • Teams keeping a record

    Each X post is emailed to a team inbox with the link. Everyone sees what went out.

More apps

Gmail, X and other apps in one automation

An automation isn't limited to two apps. Add the next step in another app and it runs as part of the same automation.

Approved posts log

Add every X post I approve by email to my Google Sheet with the date and link.

Blog posts to X with an email copy

When a new WordPress post goes live, post it on X and email me the post link.

Daily researched post

Each morning, research my topic with Perplexity, email me an X draft with the source, and post it when I reply "ok".

Setup

Connect Gmail and X once

Every idea on this page uses the same two connections, so you set them up once. If one is missing, your assistant tells you and links to the right place.

Gmail

Email

  1. At console.cloud.google.com, create a project and enable the Gmail API under APIs & Services → Library.
  2. Set up the OAuth consent screen. On Google Workspace choose Internal. On a personal Gmail account choose External, then under Audience click Publish app so it is In production, not Testing.
  3. Under Data Access, add the scopes you need, such as https://www.googleapis.com/auth/gmail.modify, or gmail.send if you only want to send.
  4. Under Clients, create an OAuth client of type Web application with the redirect URI https://clickruntime.com/oauth/callback.
  5. In the ClickRuntime dashboard, open Connections, choose Gmail and enter the client ID and secret. On a personal account Google shows an unverified-app screen: click Advanced, then go to your app.

X

Social

  1. In the X Developer Console, create an app and buy credits.
  2. Under User authentication settings, choose OAuth 2.0 as a Web App (confidential) with the callback https://clickruntime.com/oauth/callback.
  3. Use the scopes tweet.read, tweet.write, users.read and offline.access, adding media.write for images.
  4. Enter the client ID and secret under Connections in the ClickRuntime dashboard. You can use an OAuth 1.0a consumer key and access token for your own account instead.

FAQ

Questions about connecting Gmail and X

Can I approve posts by replying to an email?
Yes. The draft is emailed to you, and replying with the word approve publishes it on X.
Can it read posts from other accounts?
Yes, public posts from the accounts you list, within the read limits of your X API access level.
Which address are emails sent from?
Your own Gmail or Google Workspace address, so you can filter and search them like any other mail.
Do I need a paid X API plan?
Posting works on X's free API access. Reading other accounts' posts needs a paid access level from X.
Does it read emails from my whole inbox?
It needs Gmail access, but only reads the labels or replies you specify.
Can it post images from email attachments?
Yes. An image attached to the email can be uploaded to X with the post.
How many posts can it publish a day?
That depends on your X API tier's limits. The script can cap posts per day to stay under them.

Tell your assistant what Gmail and X should do together

Free plan. No credit card.