=== TNT AI Writer – AI Content Generator, Trending Topic Finder & SEO Draft Writer ===
Contributors: palpatel - Themesntemplates
Tags: ai content generator, seo, trending topics, keyword research, ai writer
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Discover trending, low-competition topics and generate complete SEO-optimized article drafts with free AI — no API key required.

== Description ==

**TNT AI Writer is your AI SEO strategist inside WordPress.** It discovers what people are searching for right now, scores every topic for real ranking opportunity, and writes complete, fact-grounded article drafts — using 100% free data sources and free AI, with **no API key required**.

Stop guessing what to write. Start every article with proof of demand.

= 🔥 Discover Trending Topics Automatically =

One click scans free public sources for what people are searching and discussing right now:

* Google Trends (daily trending searches)
* Google News & Bing News headlines
* Reddit community discussions
* Google, Bing & YouTube search suggestions

= 🎯 Opportunity Scoring That Finds Easy Wins =

Every discovered topic is scored 0–100 using a weighted formula: **user pain × search demand × evergreen value × commercial intent × competition × trend growth**. Sort by score and write what's most likely to rank.

= ✍️ Complete AI Article Drafts — Grounded in Real Data =

This is not a "spin the same template" generator. Before writing, the plugin researches your exact topic:

* **Real facts** from Wikipedia and DuckDuckGo (with source attribution)
* **Real questions** people ask on Reddit and in search suggestions
* **Recent headlines** for current context

Then the free Pollinations AI writes a unique, structured article: engaging intro, H2/H3 sections, step-by-step instructions, comparison table, 6-question FAQ, and conclusion. Choose 1,000 / 2,000 / 3,000 / 5,000 words — long articles are automatically continued and completed, never cut off mid-sentence.

**Drafts only. Nothing is ever auto-published.** You always review, edit, and publish manually.

= 🔑 Built-In Keyword Research =

For any topic: primary keyword, secondary keywords, long-tail phrases, People Also Ask questions, and semantic variations — with estimated difficulty (Easy → Very Hard).

= 📐 SEO Done For You =

* SEO title (under 60 chars) + meta description (under 160 chars) + clean slug
* Article + FAQ schema markup (JSON-LD)
* Open Graph & Twitter Card metadata
* One-click integration with **Yoast SEO, Rank Math, and All in One SEO** — fields pre-filled automatically
* Internal link suggestions from your existing posts
* Auto-generated, always-relevant featured image via free Pollinations AI

= 🆓 Free Plan =

* Unlimited topic discovery, opportunity scoring & keyword research
* Preview Content Workflow
* No API keys, no signup, no credit card

= ⭐ TNT AI Writer Pro =

Need more? [TNT AI Writer Pro](https://themesntemplates.com/wordpress-plugins/ai-seo-writer/#pricing) adds: unlimited AI drafts, OpenRouter/Gemini/Groq/OpenAI providers, full cron automation, bulk generation, content clusters, SERP & competitor gap analysis, content refresh finder, advanced schema (HowTo/Review/Video), premium image sources, Google Discover scoring, and Web Story generation.

✔ Generate AI Articles
✔ Rewrite Content
✔ Auto Schedule Posts
✔ Auto Publish
✔ AI Image Generation
✔ Internal Linking
✔ SEO Optimization

== External services ==

This plugin connects to third-party services to discover topics, research facts, and generate content and images. Data is only sent when you actively use the related feature (clicking "Scan Trending Topics", "Generate Keywords", or "Generate Draft"). No personal data, account data, or site visitor data is ever transmitted — only the topic/keyword text being researched.

**Google (Trends, News, Suggest)** — used to discover trending topics, news headlines, and search suggestions. The search topic string is sent to trends.google.com, news.google.com, and suggestqueries.google.com when you run a scan or keyword research. [Google Privacy Policy](https://policies.google.com/privacy)

**Bing (News, Suggest)** — used for additional news headlines and search suggestions. The topic string is sent to bing.com and api.bing.com during scans. [Microsoft Privacy Statement](https://privacy.microsoft.com/en-us/privacystatement)

**Reddit** — used to find real questions and discussions about a topic. The topic string is sent to reddit.com's public JSON API during scans and draft research. [Reddit Privacy Policy](https://www.reddit.com/policies/privacy-policy)

**Wikipedia (Wikimedia Foundation)** — used to fetch a factual definition and background for the article topic. The topic string is sent to en.wikipedia.org's public API during draft generation. [Wikimedia Privacy Policy](https://foundation.wikimedia.org/wiki/Policy:Privacy_policy)

**DuckDuckGo** — used as a fallback source for topic definitions. The topic string is sent to api.duckduckgo.com during draft generation. [DuckDuckGo Privacy Policy](https://duckduckgo.com/privacy)

**Pollinations AI** — used to generate the article text (text.pollinations.ai) and the featured image (image.pollinations.ai). The article prompt — containing the topic, keywords, and research facts — is sent when you generate a draft. This service requires no account or API key. [Pollinations Terms & Privacy](https://pollinations.ai/terms)

You can disable AI generation (Settings → AI Provider → None) and image generation (Settings → Pollinations toggle) at any time; the plugin will then work in template + research mode using only the discovery sources above.

== Installation ==

1. In your WordPress admin, go to **Plugins → Add New** and search for "TNT AI Writer", or upload the ZIP via **Upload Plugin**.
2. Click **Install Now**, then **Activate**.
3. Go to **TNT AI Writer → Settings**, pick your SEO plugin (Yoast / Rank Math / AIOSEO) and optionally a niche focus.
4. Go to **Dashboard → 🔍 Scan Trending Topics**.
5. Open **Opportunities**, pick a high-scoring topic, click **✍️ Generate Draft**.
6. Review and publish from **Posts → Drafts**.

== Frequently Asked Questions ==

= Do I need an API key or paid account? =

No. Topic discovery uses free public sources and AI writing uses the free Pollinations service — no key, no signup.

= Will the plugin publish posts automatically? =

Never. Every generated article is saved as a WordPress **Draft**. Publishing is always your manual decision.

= Is every generated article unique? =

Yes. Each draft is grounded in live research for that exact topic (Wikipedia facts, real Reddit questions, current headlines) and written fresh by AI. Even the non-AI template mode injects this real data, so no two posts share the same content.

= What happens after 10 AI drafts in a month? =

Drafts keep working in unlimited template + research mode, and your AI counter resets on the 1st of the next month. Pro removes the limit entirely.

= Does it work with Gutenberg and the Classic Editor? =

Yes — generated content is clean standard HTML compatible with both.

= Does it work with Yoast SEO / Rank Math / All in One SEO? =

Yes. Select your SEO plugin in Settings and every draft's SEO title, meta description, and focus keyword are filled in automatically.

= Can I control which topics appear? =

Yes — set a niche focus, a minimum opportunity score, and an excluded-keywords list in Settings.

= Where does the plugin store its data? =

In its own database tables (topics, keywords, drafts, logs). Deleting the plugin removes all tables, options, and cached data automatically.

== Screenshots ==

1. Dashboard — trending topics, opportunities, and drafts at a glance
2. Trending Topics — live discovery from Google Trends, News, and Reddit
3. Opportunities — every topic scored 0–100 and sorted by ranking potential
4. One-click draft generation with word count selection
5. Keyword Research — long-tail keywords and People Also Ask questions
6. Settings — SEO plugin integration and AI content engine

== Upgrade Notice ==

= 1.0.0 =
First public release.