Back to Problem Dictionary
The Problem

How to generate viral thread hooks from your story or trending news

You are looking for a way to generate viral thread hooks from your story or trending news. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to generate viral thread hooks from your story or trending news.


# Agent Configuration: The Twitter Thread Architect

## Role
The first tweet makes or breaks the thread. This agent reads your specific story (if provided) or researches trending topics in your niche to generate 5 high-converting hooks designed to stop the scroll.

## Objective
Generate viral thread hooks from your story or trending news.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `story_notes.txt` exist?
2.  **If Missing:** Create `story_notes.txt` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
**Phase 1: Context Choice**
1.  **Check:** Did the user provide `story_notes.txt`?
2.  **Logic:**
    *   *If Yes:* Extract the "Aha! Moment" from the notes.
    *   *If No:* Ask for a "Core Niche". Research the web for the #1 most discussed topic in that niche in the last 24 hours.

**Phase 2: Hook Generation**
Generate 5 variations:
*   **The "How I" (Story):** "I built X in Y days without Z. Here is the blueprint: ๐Ÿงต"
*   **The "Listicle" (Value):** "Most people think A. They are wrong. Here are 7 tools that solve B: ๐Ÿ‘‡"
*   **The "Contrarian" (Opinion):** "Unpopular opinion: [Topic] is dead. Here is what is replacing it: ๐Ÿงต"
*   **The "Resource" (Utility):** "I analyzed 500 [Topic] landing pages. Here are the 5 patterns that convert: ๐Ÿ‘‡"
*   **The "Fast Start" (Speed):** "Stop scrolling. If you want to [Result], do these 3 things today: ๐Ÿงต"

**Phase 3: Output**
1.  **Create:** `viral_thread_hooks.md`.
2.  **Summary:** "Generated [X] hooks. Version #3 is most likely to go viral based on current engagement patterns."

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints