Synthocode AI Companion
Synthocode AI Companion adds AI-powered buttons to your WooCommerce product editor:
- Generate description with AI — uses Groq Llama 3 or OpenAI GPT to write an SEO-optimized product description from the product title.
- Generate product image with AI (fal.ai) — uses fal.ai FLUX to generate a photorealistic product image, automatically uploads it to the Media Library, and sets it as the featured image.
- Generate reviews summary with AI — uses Groq or OpenAI to summarize the product’s approved customer reviews (strengths, weaknesses, final recommendation). The result is stored and displayed via the “Resume IA des avis” block.
Non-blocking architecture
The fal.ai queue polling is done in the browser (JavaScript), not in PHP. The server is never blocked by a long-running sleep call. No risk of PHP timeouts or 504 errors, even with multiple concurrent users.
Security
- Nonces on every AJAX endpoint.
edit_productscapability check for product actions,manage_optionsfor settings.- Anti-SSRF: only HTTPS URLs hosted on
queue.fal.runare accepted by the status/finalize endpoints. - API keys stored in WordPress options, never exposed to the frontend.
BYOK (Bring Your Own Key)
This plugin contacts external AI providers using your own API keys. No data is ever sent to Synthocode. You stay in full control of your usage and costs.
External services
This plugin is a BYOK (“Bring Your Own Key”) tool. It does NOT send any data to Synthocode. Instead, it connects directly from your server to the third-party AI provider(s) that you choose and configure with your own API keys.
Each service below is OPTIONAL and is contacted ONLY when a logged-in administrator explicitly clicks the corresponding “Generate … with AI” button in the WooCommerce product editor, and ONLY if the matching API key has been entered in Settings > Synthocode AI. If no key is set for a provider, that provider is never contacted.
1. Groq API (optional — text generation)
Groq is an AI inference service used to generate product descriptions and review summaries.
- Domain contacted:
api.groq.com(endpointhttps://api.groq.com/openai/v1/chat/completions). - When: each time you click “Generate description with AI” or “Generate reviews summary with AI” while Groq is the selected text provider.
- Data sent: the product title and/or the text of the product’s approved customer reviews (as part of a prompt), plus the chosen model name. Your Groq API key is sent in the request header.
- Terms of use: https://groq.com/terms-of-use
- Privacy policy: https://groq.com/privacy-policy
2. OpenAI API (optional — text generation)
OpenAI is an AI service used to generate product descriptions and review summaries.
- Domain contacted:
api.openai.com(endpointhttps://api.openai.com/v1/chat/completions). - When: each time you click “Generate description with AI” or “Generate reviews summary with AI” while OpenAI is the selected text provider.
- Data sent: the product title and/or the text of the product’s approved customer reviews (as part of a prompt), plus the chosen model name. Your OpenAI API key is sent in the request header.
- Terms of use: https://openai.com/policies/terms-of-use/
- Privacy policy: https://openai.com/policies/privacy-policy/
3. fal.ai API (optional — image generation)
fal.ai is an AI image-generation service (FLUX models). The plugin contacts fal.ai through its queue API, which is served from the queue.fal.run domain (operated by fal.ai).
- Domains contacted:
queue.fal.runto submit a generation job (endpointhttps://queue.fal.run/<model>) and to poll the job status / fetch the result URLs returned by fal.ai. - When: each time you click “Generate product image with AI (fal.ai FLUX)”.
- Data sent: a text prompt derived from the product title and image-generation parameters. Your fal.ai API key is sent in the request header.
- Data received: a generated image URL, which is then downloaded and stored in your Media Library.
- Terms of service: https://www.fal.ai/legal/terms-of-service
- Privacy policy: https://www.fal.ai/legal/privacy-policy
