47 lines
3.5 KiB
Markdown
47 lines
3.5 KiB
Markdown
# Interweb Mozambique WordPress All in One AI plugin
|
|
|
|
<!-- badges:start -->
|
|
[](https://git.interweb.co.mz/interweb-mz/wordpress-ai-plugin/releases) [](LICENSE)
|
|
<!-- badges:end -->
|
|
|
|
[Português](README-pt.md)
|
|
|
|
<!-- kb:start -->
|
|
Step-by-step guide in our [Knowledgebase](https://www.meu.interweb.co.mz/knowledgebase/3340?language=english).
|
|
<!-- kb:end -->
|
|
|
|
> API: `https://api.interweb.co.mz`, built in. Create your key in the [API Center](https://www.meu.interweb.co.mz/api-center.php) of Meu Interweb. Documentation: https://docs.interweb.co.mz
|
|
|
|
WordPress and WooCommerce plugin for All in One AI. It uses only our public API, with your account key. Works in Portuguese and English.
|
|
|
|
## What it does
|
|
- Site assistant: a floating chat on the site. Requests go through the WordPress server and the key never reaches the browser. Limits per visitor, per day and for the whole site. It can use one of your agents.
|
|
- Write with AI: a box in the editor of posts, pages and WooCommerce products. From a few words it drafts the product description, the short description, the page text or the excerpt. You edit the suggestion, then add it at the end or replace the text. Works in the block editor and in the classic editor.
|
|
- New draft: describe a post or page and get a first draft, saved as a draft. Nothing is published.
|
|
- Control: model list with prices, tone, language, facts about the business used in every text, a daily limit per user, a connection test with the AI balance and a minimal test question.
|
|
|
|
## Install
|
|
1. Copy the `interweb-mz-ai` folder to `wp-content/plugins/` (or build a zip with `tools/build-zip.sh` and upload it in Plugins > Add New).
|
|
2. Activate the plugin and open Settings > Interweb Mozambique All in One AI.
|
|
3. Paste the API key and click "Test the connection".
|
|
|
|
## Languages
|
|
- The code is in English. Translations are gettext files in `interweb-mz-ai/languages` (`.pot`, and `.po` with `.mo` for `pt_PT`, `pt_BR` and `pt_AO`).
|
|
- "Same as WordPress" follows the WordPress language; "Português" or "English" fixes the plugin language. The texts the AI writes follow the language chosen in each request.
|
|
- After changing texts: `python3 -I tools/i18n-check.py --pot`, translate in the `.po` files, `python3 -I tools/build-mo.py` and `python3 -I tools/i18n-check.py`.
|
|
|
|
## The key
|
|
- Create it in the [API Center](https://www.meu.interweb.co.mz/api-center.php) of Meu Interweb, with `ai:read` and `ai:write`. With a `sandbox_` key the model is not called and nothing is spent: every answer is a fixed test text.
|
|
- It is stored encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define `INTERWEB_MZ_AI_API_KEY` in `wp-config.php` instead.
|
|
|
|
## Good to know
|
|
- Each answer and each text spends AI credits by the tokens used. Keep "Maximum length" low and choose a cheap model for short texts.
|
|
- The AI is told to write short sentences, to use only the facts given and not to invent prices, deadlines or promises. Always read the text before you publish.
|
|
- It can run next to the Interweb Mozambique Connect plugin. If both show the chat assistant, turn it on in only one of them.
|
|
- Optional constants in `wp-config.php`: `INTERWEB_MZ_AI_API_KEY`, `INTERWEB_MZ_AI_ENCRYPTION_KEY`. Filter `interweb_mz_ai_writer_post_types` adds other post types to the editor box.
|
|
|
|
Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension. WooCommerce is optional (product descriptions).
|
|
|
|
---
|
|
|
|
Maintained by RLX Holdings.
|