Your FREE AI Agent Posts on Social Media!

Learn how to build a powerful AI Agent that scans Twitter and posts on Threads, using open-source tools.

Learn how to build a fully automated and free AI Agent for Social Media that:

  1. researches content on your Twitter/X feed

  2. performs additional research on the topic via Google

  3. then repurposes the research into a Threads post

  4. posts on your Threads account

This can operate 100% free.

Simply use an open-source multimodal LLM, like Llama, instead of ChatGPT-4o.

Plus, the AI agent runs locally on your computer and controls your Chrome browser, so that it can manage your social accounts (which is a BIG issue with cloud-hosted agents).

Watch the mind-blowing demo here 🤯 

Getting Started

Here's what you'll need to get started:

  • Browser use: This is the main tool to enable AI-driven content automation for your social media.

  • Python: Ensure it's installed on your computer. If not, ask ChatGPT.

  • Chrome Browser: This is what Browser-Use uses to control your browser.

  • OpenAI API Key: Use OpenAI for testing, then switch to a free open-source models like Llama if cost is a concern.

Remember: if you get stuck with anything, ask ChatGPT/DeepSeek/Claude! This is the most important skill to build.

Step 1: Install Browser-Use

  • Go to https://github.com/browser-use/browser-use

  • Click green button “Code”

  • Download ZIP file

  • Extract ZIP file

  • Open your terminal

  • Use command cd to change directories and navigate to the browser-use folder you just created.

Then, follow the project’s Quick Start section, asking ChatGPT line-by-line what to do.

Step 2: Configure Environment

  • Create a .env file within the directory

  • Insert your OpenAI API key in this file

  • Verify that you are logged into your social media accounts within Chrome

To confirm the install works, use the sample price comparison script from the project instructions. Create a new file called main.py and paste this code:

from langchain_openai import ChatOpenAI
from browser_use import Agent
import asyncio
from dotenv import load_dotenv
load_dotenv()

async def main():
    agent = Agent(
        task="Compare the price of gpt-4o and DeepSeek-V3",
        llm=ChatOpenAI(model="gpt-4o"),
    )
    await agent.run()

asyncio.run(main())

Finally, run your agent:

  • Ensure all Chrome browser windows are closed before running the agent

  • Open a terminal

  • Type python main.py

  • Hit Enter

If everything works, then you should see something like this in your terminal:

Step 3: Use My Social Media Code

Now, copy/paste the following code into the main.py file. Replace the entire contents of the file with the code below.

It looks like A LOT, but I promise you it’s not. Most of it is my writing prompt. The “prompt” for the AI agent is in green where it says task=. This is what you should customize for your use case.

from browser_use import Agent, Browser, BrowserConfig, Controller
from pydantic import BaseModel
from langchain_openai import ChatOpenAI
import asyncio

# Configure the browser to connect to your Chrome instance
browser = Browser(
    config=BrowserConfig(
        # Specify the path to your Chrome executable
        chrome_instance_path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",  # macOS path
        # For Windows, typically: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
        # For Linux, typically: '/usr/bin/google-chrome'
    )
)

# Central agent
agent = Agent(
    task="""
    1. Open Twitter: https://x.com/search?q=ai&src=typed_query&f=top
    2. Scroll the feed until you find a detailed educational tweet about AI.
    3. Research the topic further. Analyze a relevant website, article, or blog.
    4. Open Threads: https://www.threads.net/@sabrina_ramonov
    5. Write a HIGHLY EDUCATIONAL post related to the tweet and research you found, using this prompt:

<prompt>
# CONTEXT

Infer the topic from the sources provided.

# WRITING STYLE

Here’s how you always write:

<writing_style>

- Your writing style is spartan and informative.
- Use clear, simple language.
- Employ short, impactful sentences.
- Incorporate bullet points for easy readability.
- Use frequent line breaks to separate ideas.
- Use active voice; avoid passive voice.
- Focus on practical, actionable insights.
- Use specific examples and personal experiences to illustrate points.
- Incorporate data or statistics to support claims when possible.
- Ask thought-provoking questions to encourage reader reflection.
- Use ""you"" and ""your"" to directly address the reader.
- Avoid metaphors and clichés.
- Avoid generalizations.
- Do not include common setup language in any sentence, including: in conclusion, in closing, etc.
- Do not output warnings or notes—just the output requested.
- Do not use hashtags.
- Do not use semicolons.
- Do not use emojis.
- Do not use asterisks.
- Do not use adjectives and adverbs.
- Do NOT use these words:
can, may, just, that, very, really, literally, actually, certainly, probably, basically, could, maybe, delve, embark, enlightening, esteemed, shed light, craft, crafting, imagine, realm, game-changer, unlock, discover, skyrocket, abyss, you're not alone, in a world where, revolutionize, disruptive, utilize, utilizing, dive deep, tapestry, illuminate, unveil, pivotal, enrich, intricate, elucidate, hence, furthermore, realm, however, harness, exciting, groundbreaking, cutting-edge, remarkable, it. remains to be seen, glimpse into, navigating, landscape, stark, testament, in summary, in conclusion, moreover, boost, bustling, opened up, powerful, inquiries, ever-evolving

</writing_style>

# PLANNING

Your goal is to write a social media post.

1. Analyze the provided sources thoroughly.
2. Study the <example1> and <example2> posts below carefully. You will be asked to replicate their:
    - Overall structure.
    - Tone and voice.
    - Formatting (including line breaks and spacing).
    - Length (aim for a similarly detailed post).
    - Absence of emojis.
    - Use of special characters (if any).
    - Emotional resonance.

<example1>
I built an AI Social Media System that saves you 20 HOURS per week. Create and distribute content everywhere 24/7 — 100% on autopilot.

No need for a team.
No need for paid ads.
No need for hours of manual work.

This system combines multiple AI tools to handle everything from writing content, generating images, and creating avatar videos.

Easily tweak the system for your needs.

And I've made it for YOU, for FREE:
</example1>

<example2>
95% of AI Automation Agencies in 2025 will FAIL.

Here's a much easier path to $20k/mo... 👇️

Loads of ppl jumping into AAA hype WITHOUT understanding the work involved for fulfillment.

But, small businesses need help with the BASICS of AI.

Think very, very basic...

What is ChatGPT? How do I install it? Is there a mobile app? Which model should I use? How do I upload a file? What's that button do? How do I ask it stuff?
</example2>

# OUTPUT
Follow the GUIDELINES below to write the post. Use your analysis from step 1 and step 2. Use the provided sources as the foundation for your post, expanding on it significantly while maintaining the style and structure of the examples provided from step 2. You MUST use information from the provided sources. Make sure you adhere to your <writing_style>.

Here are the guidelines:
<guidelines>
Write a thought-provoking tweet. Start with a bold controversial sentence. Write 5 more sentences in 5th grade reading level. Every sentence must be concise. Remove ALL adjectives and adverbs.

!IMPORTANT: before outputting your final answer,  ensure your answer contains fewer than 280 characters.
</guidelines>
Take a deep breath and take it step-by-step!

# INPUT

Sources: Use the tweet and research you found!

</prompt>

    6. Rewrite the last sentence to be a controversial question that people will want to answer.
    7. Post it.
""",
    llm=ChatOpenAI(model="gpt-4o", timeout=1000),
    browser=browser,
)


async def main():
    await agent.run(max_steps=1000)
    await browser.close()


if __name__ == "__main__":
    asyncio.run(main())

If you remove my AI writing prompt, you’re left with the following task template, which you can easily personalize for your needs. You can even tell the AI Agent to use different social media platforms besides Twitter and Threads:

    1. Open Twitter: https://x.com/search?q=ai&src=typed_query&f=top
    2. Scroll the feed until you find a detailed educational tweet about AI.
    3. Research the topic further. Analyze a relevant website, article, or blog.
    4. Open Threads: https://www.threads.net/@sabrina_ramonov
    5. Write a HIGHLY EDUCATIONAL post related to the tweet and research you found, using this prompt:
    6. Rewrite the last sentence to be a controversial question that people will want to answer.
    7. Post it.

Caveats

Always keep an eye on the AI Agent when it’s running, especially if you’re giving it access to your accounts and sensitive data. Personally, I've been testing the code locally on my computer, but always supervised. To run this long-term in an automated way, I plan to set it up on an old laptop in order to limit access to sensitive data, as much as possible.

The Future of Content?

In general, I don’t believe AI agents/automations make content creation EASIER.

As it becomes easier for everyone, including AI agents, to make content, the harder it is to stand out.

All platforms are increasingly using AI to hide low-quality content and amplify high-quality content, regardless of your follower count, regardless of how often you post.

However, I believe AI agents/automations are terrific tools to scale up…

AFTER you’ve figured out your audience, niche, voice, style, etc.

It can help you be consistent, scale to BIG numbers without traditionally having to hire a big team (I’m still a team of n=1), stay on top of breaking news, analyze opinions and sentiment across thousands of sources, identify high-quality but underserved pieces of content, etc.

I designed Blotato to be the ultimate “AI copilot for creators”. I plan to continue building agents/automations to understand how I should integrate some of these capabilities into the app. But there’s no shortcut. It takes A LOT of hard work to build your personal or business brand, and using agents/automations does NOT help you avoid that.

Need More Help? đź‘‹ 

1/ If you want to learn how to grow on social media and make $20K/month through coaching, consulting, speaking, selling apps, or digital products… check out Blotato — Social Media Made Easy 🍄

2/ Free AI courses & playbooks here.