Skip to content

anjana-kanzariya/b2b-content-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B2B AI Content Generator for WooCommerce

A WordPress plugin that generates B2B-optimised product descriptions, short excerpts, and SEO meta — directly from your existing WooCommerce product data (name, categories, attributes, custom fields, and more).

Built for stores serving procurement teams, operations leads, and business buyers — not consumer-facing fluff.


Why This Exists

Most AI content plugins are built for B2C stores. They write like a lifestyle brand. If you run a B2B WooCommerce store — wholesale, trade, manufacturing, or enterprise — you need content that speaks to buyers who care about specs, ROI, compatibility, and integration. This plugin does that.

It also pulls from your existing product data automatically — no copy-pasting into a prompt box. Just open a product, click Generate, review, and apply.


Features

  • Generates full product description, short excerpt, and SEO meta (title + description)
  • Pulls from: product name, type, SKU, categories, tags, attributes, dimensions, weight, existing content, and public custom fields (ACF-friendly)
  • Four B2B tones: Professional, Technical, Consultative, Formal
  • Optional buyer persona field to tailor output to your specific audience
  • Supports OpenAI (GPT-4o), Anthropic (Claude), Google (Gemini 1.5 Pro), and OpenRouter (any model)
  • API keys encrypted at rest — never exposed to the browser
  • Applies generated content directly to WooCommerce product fields including Yoast SEO and RankMath
  • Bulk generation coming in v1.1

Installation

  1. Download or clone this repository into your /wp-content/plugins/ directory
  2. Activate the plugin from Plugins → Installed Plugins
  3. Go to WooCommerce → AI Content Gen to configure your API key and defaults
  4. Open any product — the B2B AI Content Generator metabox appears in the sidebar

Configuration

Setting up your API key

Go to WooCommerce → AI Content Gen → Settings.

Provider Where to get your key
OpenAI platform.openai.com/api-keys
Claude console.anthropic.com
Gemini aistudio.google.com/apikey
OpenRouter openrouter.ai/keys

API keys are encrypted using AES-256-CBC before being stored in the database. They are never passed to the browser or logged.

Tone options

Tone Best for
Professional & authoritative General B2B, default
Technical & spec-led Industrial, hardware, manufacturing
Consultative & solution-focused SaaS, services, complex products
Formal (regulated industries) Healthcare, finance, legal

Target buyer persona

Optional but recommended. Example:

"Procurement managers at Norwegian manufacturing SMEs buying industrial equipment"

This is passed directly to the AI and significantly improves content relevance.


Usage

  1. Open any WooCommerce product for editing
  2. In the B2B AI Content Generator sidebar metabox, select what to generate
  3. Click Generate B2B Content
  4. Review the output in the preview panel
  5. Click Apply to product — content is written to the description, excerpt, and SEO fields
  6. Save the product as normal

Security

  • All AJAX requests verified with WordPress nonces
  • Capability check (edit_products) on every request
  • API keys stored encrypted, never autoloaded as plaintext
  • All user input sanitized; all output escaped
  • No data sent to third parties except the configured AI provider

Requirements

  • WordPress 6.0+
  • WooCommerce 7.0+
  • PHP 7.4+
  • An API key from one of the supported providers

Roadmap

  • Bulk generation for multiple products
  • Per-product tone override in metabox
  • Generation history / undo
  • Support for variable product variation descriptions
  • WooCommerce import integration (generate content during CSV/XML import)

Contributing

Pull requests welcome. Please follow WordPress coding standards and include one scenario per PR.


License

GPL-2.0+. See LICENSE for details.


Author

Built by Anjana Kanzariya — WordPress backend developer specialising in WooCommerce customisation and B2B eCommerce.

About

B2B AI content generator for WooCommerce — generates product descriptions, excerpts and SEO meta from existing product data using OpenAI, Claude, Gemini or OpenRouter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors