1. Before you start
You need:
- A WordPress website running WordPress 6.5 or later and PHP 8.1 or later (your host can tell you the PHP version).
- An administrator login for that website.
- An account with an AI provider — OpenAI, Anthropic (Claude), Google (Gemini) or an OpenAI-compatible service. On WordPress 7.0 or later you can instead use the AI providers already connected in WordPress.
About cost: the plugin is free. Your AI provider charges you directly for the replies the assistant writes, usually a small amount per conversation. Most providers need a payment method or prepaid credit before their API works.
2. Install the plugin
- Download the plugin zip file. Do not unzip it.
- In your WordPress dashboard, go to Plugins→Add New Plugin and click Upload Plugin.
- Choose
maktomine-ai-agent-1.3.1.zip, click Install Now, then Activate. - A new Maktomine AI menu appears in the left sidebar. Everything below happens there.
3. Connect an AI provider
Go to Maktomine AI→API & Settings.
- Choose your provider from the AI provider dropdown.
- Paste your key into API key. The Get an API key ↗ link opens the right page at your provider.
- Click Load models and pick a Default model, or leave it on Automatic.
- Click Save & test. A green “Connected to …” message means it works.
Where to get an API key
| Provider | Create a key at | Good low-cost models |
|---|---|---|
| OpenAI | platform.openai.com/api-keys | “mini” models |
| Anthropic Claude | platform.claude.com/settings/keys | Claude Haiku |
| Google Gemini | aistudio.google.com/apikey | Gemini Flash or Flash-Lite |
Using WordPress AI (WordPress 7.0+)
First connect a provider in Settings→Connectors. Then in API & Settings choose WordPress AI (Settings → Connectors) and click Save & test. No API key is needed in the plugin.
Using OpenRouter, Groq, DeepSeek, Mistral or Ollama
Choose OpenAI-compatible, enter a Display name and the service’s API base URL, add the key if the service requires one, then load models and save.
| Service | API base URL |
|---|---|
| OpenRouter | https://openrouter.ai/api/v1 |
| Groq | https://api.groq.com/openai/v1 |
| DeepSeek | https://api.deepseek.com/v1 |
| Mistral | https://api.mistral.ai/v1 |
| xAI (Grok) | https://api.x.ai/v1 |
| Ollama (self-hosted) | http://localhost:11434/v1 — only if Ollama runs on the same server as WordPress |
Reasoning effort (OpenAI and Claude): keep it on Low for chat. It gives faster and cheaper replies.
4. Create your assistant
Go to Maktomine AI→AI Assistants and click New assistant.
- Identity: give it an Assistant name (for example “Ask Maktomine”), a short Purpose, a Personality and a Response length.
- Language: write
autoto reply in the visitor’s language, or for exampleEnglish and Bangla. - System instructions: tell the assistant what it should and should not do. You can start from the example below.
- Keep Use the knowledge base to answer ticked. Turn on Strict mode if it must never answer outside your business information.
- AI provider and Model: leave them on the default unless this assistant needs a different one.
- Conversation: write a Welcome message and up to six Suggested questions.
- Set Status to Active and click Save assistant.
Example system instructions — copy and edit:
You are the website assistant for [Business name], a [what you do] in [city].
Answer only questions about our services, prices, delivery, opening hours and contact details.
Use the business knowledge provided. If you are not sure, say so and suggest
contacting us on WhatsApp — never invent prices, dates or promises.
Keep answers short and friendly. Ask for the visitor's details only when they
want a quotation or a call back.
5. Add business knowledge
The assistant answers from this information, so this step matters most. Go to Maktomine AI→Knowledge Base and choose your assistant.
- + Pages & posts: tick the pages that describe your services, prices, about and contact information, then click Import selected. When you edit those pages later, the knowledge updates automatically.
- + FAQ: add the questions customers really ask, in their own words, with clear answers.
- + Text: add anything that is not on your website — opening hours, delivery areas, payment methods, policies.
- Test retrieval: type a question to see exactly which knowledge the assistant will use. If nothing matches, add knowledge that covers it.
Tip: knowledge can be written in Bangla, English or both. Include specific facts — prices, durations, locations — because vague pages produce vague answers.
6. Show the chat on your website
Floating chat button (recommended)
In your assistant, tick Show as floating chat on every page and save. In the Appearance section you can set:
- Brand colour, header title and subtitle, avatar or logo.
- Chat button background and icon colour — for example a light button on a dark brand.
- Chat button position: bottom right, bottom left, top right or top left.
- Width, a launcher label, and Hide on mobile or Hide on desktop.
Inline chat box on a page
Place the shortcode on any page. The assistant’s number (ID) is shown in the AI Assistants list:
[maktomine_ai_agent id="1"]
Optional height in pixels: [maktomine_ai_agent id="1" height="600"]. In the block editor, add the Maktomine AI Agent block instead. In Elementor, Divi and other page builders, paste the shortcode into a Shortcode, Code or Text element.
7. Leads, email & WhatsApp
- Lead capture: in your assistant, tick Show “Leave your details” button and write a short Lead form intro text. Visitors must tick a consent box before their details are saved.
- Email alerts: in Maktomine AI→Integrations, tick Email me when a new lead arrives and enter the address in Send to. For reliable delivery, use an SMTP plugin.
- WhatsApp handoff: in Integrations, enter your WhatsApp number in international format with digits only (for example
8801XXXXXXXXX) and an optional pre-filled message, then click Test link. Each assistant can override the number. - Managing leads: Maktomine AI→Leads lists every lead with a status you can update, and Export CSV downloads them for a spreadsheet or CRM.
8. Keep AI costs under control
All of these are in Maktomine AI→API & Settings:
- Daily AI reply limit: the maximum number of AI replies per day across all visitors. The default is 1,000; lower it if you want a hard cap.
- Rate limit: messages per visitor within a time window (default 20 per 60 seconds). This stops one visitor from running up your bill.
- Conversation memory and Knowledge per answer: lower numbers send fewer tokens and cost less per reply.
- Price per 1M tokens: enter your provider’s prices to see estimated costs on the Dashboard and Analytics pages.
Also choose a smaller model (“mini”, “flash”, “lite” or “haiku”) and set a monthly spending limit in your AI provider’s billing settings.
9. Privacy settings
- Privacy notice: a short text shown in the chat window, for example a link to your privacy policy.
- Delete conversations after: 90 days by default. Delete leads after: 365 days by default. Enter 0 to keep them forever.
- Proxy / CDN: tick this if your site is behind Cloudflare or a similar proxy, so rate limiting sees each visitor correctly.
Mention the AI chat in your website’s privacy policy. You can adapt this paragraph:
Our website chat assistant uses an artificial intelligence service ([provider name])
to answer your questions. The messages you type in the chat are sent to that service
to generate a reply. Your name, email address and phone number are not sent to the AI
service; if you choose to leave your details, they are stored on our website and used
only to contact you. Chat conversations are deleted after 90 days and contact details
after 365 days.
10. Troubleshooting
“Save & test” shows an error
Check that the whole key was copied, that your provider account has billing or credit set up, and that the chosen model exists (click Load models). The error message comes from the provider and usually names the problem. If every provider fails, ask your host whether outgoing connections are blocked.
A saved API key can no longer be read
Keys are encrypted with the security keys in your site’s wp-config.php. If those keys change, for example after a migration, enter the API key again and save.
The chat button does not appear
Check that the assistant is Active, Show as floating chat on every page is ticked, and Hide on mobile or Hide on desktop is not hiding it on your device. Then clear any caching plugin and CDN cache.
The assistant says it does not know
Use Test retrieval with the same question. If nothing relevant is found, add an FAQ or text that covers it. You can also raise Knowledge per answer, or switch off Strict mode if it is too restrictive.
The assistant stopped replying
The Daily AI reply limit may have been reached; it resets the next day. Otherwise, check that your AI provider account still has credit.
Lead emails are not arriving
Check your spam folder and the Send to address, then install an SMTP plugin. Many hosts do not deliver plain WordPress emails reliably. All leads are still saved in Leads.
11. Update or uninstall
To update: download the new zip, go to Plugins→Add New Plugin→Upload Plugin, choose the file and click Replace current with uploaded. Your assistants, knowledge, conversations and leads are kept.
Do not delete the plugin to update it. By default, deleting the plugin removes all of its data. If you want to keep the data after deleting, untick Uninstall in API & Settings first.
To uninstall: deactivate and delete the plugin from the Plugins page. With the default setting, its assistants, knowledge, conversations, leads and saved keys are removed from your database.
Still need help?
Message us with a screenshot of the problem and we will point you in the right direction.