Vendors click Generate with AI. Draft copy in seconds.
Drops “Generate with AI” buttons next to short / long product descriptions and the vendor biography field on the Dokan dashboard. Vendors pick a length (Short / Medium / Long), add optional hints, and get a draft from Google Gemini or OpenAI. Admins choose the provider, control per-product regeneration caps and rest easy — API keys are AES-256-GCM encrypted at rest.
AI in the right place, with the right guardrails.
Generate product descriptions
“Generate with AI” appears next to the short and long description fields on the Add/Edit Product page.
Generate vendor bios
Same button appears on the vendor biography field (Dokan Pro).
Gemini or OpenAI
Admin chooses the provider once. Google Gemini for low-cost / fast; OpenAI (GPT-4 / 4o) for higher quality.
Per-product regeneration caps
Default 5 generations per product, configurable. Keeps API costs predictable.
Length picker
Short / Medium / Long, with admin-configured word ranges per area (descriptions, bios, etc.).
AES-256-GCM key storage
API keys are encrypted at rest using libsodium & the WordPress auth salt — never logged or exposed.
Capability-gated REST
Endpoints generate-product and generate-bio require a valid nonce + vendor capability. No public access.
Activity log
Every generation is logged in WooCommerce Status → Logs for cost & usage auditing.
Architecture & integration.
Plugin name
Dokan Vendor AI Writer by ONVORE
Slug / text domain
dokan-vendor-ai-writer-by-onvore
Requires
WordPress 6.2+, WooCommerce, Dokan Lite (or Pro), PHP 7.4+
External APIs
generativelanguage.googleapis.com (Gemini) or api.openai.com (OpenAI). Only the product title, hints and length preference are sent — no customer or order data.
REST endpoints
dokan-vendor-ai-writer-by-onvore/v1/generate-product, …/generate-bio (POST, nonce + capability)
Logging
WooCommerce Status → Logs.
The quick answers.
Which provider should I use?
Google Gemini is typically lower-cost and fast; OpenAI (GPT-4 / 4o) offers higher quality but costs more. Pick one and paste the API key in settings — one provider per site.
How much do API calls cost?
Cost depends on the provider and prompt size. Admin-set regeneration caps keep spend predictable; test with a small cap first.
Can I change the word-count ranges?
Yes. The settings page lets you set custom Short / Medium / Long ranges for descriptions and bios independently.
Is the API key stored securely?
Yes. Keys are AES-256-GCM encrypted at rest using libsodium & the WordPress auth salt. Payloads sent to the provider include only product title, hints and length — never customer or order data.
What happens when a vendor hits the regeneration cap?
The button disables with a clear message. The vendor can edit the existing draft manually, or you can raise the cap from settings.
Want this in your marketplace?
A single, focused Dokan add-on. Licensed via account.onvore.com with auto-updates and support.