Ever scrolled through your Twitter feed, spotted amazing posts, and thought, “I wish I could write something like that”?
We’ve all been there — wanting to stay active on social media but running out of ideas or inspiration.

That’s exactly why I created a simple iOS Shortcut that helps you generate similar tweets — instantly.
You just share a tweet to the shortcut, and it creates a new, fresh, and natural-sounding version of it.
Even better: it can also generate an infographic or visual version of that tweet for better engagement.

How It Works

The iOS Shortcut acts as a wrapper around your hosted n8n workflow.
When you share a tweet to the shortcut, it sends that tweet’s URL (and your image preference) to the webhook.
The workflow processes the input using AI and returns the final result — either a regenerated tweet or a ready-to-share image.

The workflow can do two main things:

  1. Regenerate tweets — rewrite existing tweets in a new, authentic voice.

  2. Create visuals — turn tweet content into infographic-style images.

Important: You Need to Host It Yourself

This shortcut doesn’t work entirely on its own — it connects to an n8n workflow that handles all the AI processing.
That means you’ll need to host n8n (either on your own server or through a cloud provider) to make it work.

Here’s the setup process:

  1. Set up the n8n workflow on your instance.

  2. Copy the webhook URL from your workflow.

  3. Paste it into the shortcut when prompted — this tells the shortcut where to send requests.

Once that’s done, the shortcut will be fully functional and ready to generate tweets or visuals for you in seconds.

Inside the n8n “Tweet Regeneration” Workflow

Let’s peek under the hood.

1. Entry Point — Webhook

The workflow starts when it receives a POST request from your shortcut containing:

  • The tweet URL

  • An “image” parameter (telling it whether to generate text only or also create an image)

2. Validation

The system checks if the provided URL is valid (Twitter/X or Reddit — though the Reddit path is still in progress).

3. Fetching the Tweet

It extracts the tweet ID and uses TwitterAPI.io to grab the tweet’s text content.

4. Regeneration or Visualization

Depending on what you selected, the workflow follows one of two paths:

Path A — Text Regeneration

This path uses Google’s Gemini 2.5 Flash model (via OpenRouter) to:

  • Rewrite the tweet in a natural, conversational tone

  • Keep it authentic, like texting a friend — no robotic or “newsletter” vibes

  • Add hooks or phrasing that make it more engaging

  • Output the result as clean, structured JSON

The generated tweet is also logged to MongoDB with metadata like URL, IP, and timestamp — useful for analytics or future iterations.

Path B — Image Generation

When you enable image mode, the workflow:

  1. Converts the tweet into a visual prompt for the AI

  2. Uses Gemini’s image generation model to create an infographic-style image

  3. Waits for completion (with retry logic)

  4. Uploads the image to ImgBB and returns the public URL

This allows you to instantly share tweet-inspired visuals, perfect for eye-catching posts.

Technologies Behind the Magic

  • AI Model: Google Gemini 2.5 Flash

  • Tweet Fetching: TwitterAPI.io

  • Image Hosting: ImgBB

  • Database: MongoDB

  • Workflow Engine: n8n

  • Authentication: Secure header-based webhook auth

What You Get

Depending on your chosen mode:

  • 📝 Text Mode: A reimagined tweet, ready to post.

  • 🖼️ Image Mode: A shareable infographic that boosts visibility.

It’s like having your own AI-powered tweet recycling assistant — always ready to spark new ideas and keep your feed active.

Try It Out

  1. Host the n8n workflow on your server.

  2. Insert your webhook URL into the shortcut.

  3. Start generating content directly from your Twitter app or share sheet.

If you’d like help setting it up or customizing the workflow, feel free to reach out — I’ll be happy to guide you through it.

Reply

or to participate

Keep Reading

No posts found