Agent PopUp Helper by Mery
Custom WordPress AI chatbot plugin with shortcode and floating popup modes, OpenAI integration, branding options, and a modern SaaS-style UI.
by MarianoAkaMery · github.com/marianoakamery/agent-popup-helper-by-mery · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/marianoakamery/agent-popup-helper-by-mery/archive/refs/heads/main.zip
WordPress plugin for embedding your OpenAI ChatKit agent in two display modes:
- embedded chatbot via shortcode
- floating popup chatbot injected in the site footer
The plugin is designed as a small, editable, real-world v1 with clean PHP, vanilla JS, and custom CSS.
The current codebase keeps the existing public keys for compatibility:
- shortcode:
[ml_chatbot] - option key:
ml_chatbot_settings
Features
- WordPress admin settings page
- OpenAI API key stored server-side
- ChatKit integration for OpenAI-hosted agents
- Configurable OpenAI Workflow ID
- Optional workflow version override
- Display mode:
Shortcode windowFloating popup
- Popup position:
- bottom right
- bottom left
- Popup open delay
- Popup visibility:
- desktop and mobile
- desktop only
- mobile only
- Optional launcher text toggle
- Brand customization:
- chatbot title
- optional brand name
- optional logo
- theme color picker
- AJAX backend with nonce validation
- No API key exposure in the frontend
- Small set of WordPress filters for developers
Current Structure
.
|-- .gitignore
|-- assets/
| |-- css/
| | `-- ml-chatbot.css
| `-- js/
| |-- ml-chatbot-admin.js
| `-- ml-chatbot.js
|-- includes/
| |-- class-ml-chatbot-admin.php
| |-- class-ml-chatbot-api.php
| |-- class-ml-chatbot-plugin.php
| `-- class-ml-chatbot-shortcode.php
|-- ml-chatbot-ai.php
|-- README.md
`-- uninstall.php
Requirements
- WordPress 6+
- PHP 8+
- a valid OpenAI API key
Installation
- Copy the plugin folder into
wp-content/plugins/ - Activate
Agent PopUp Helper by Meryfrom the WordPress admin - Open
Settings > Agent PopUp Helper by Mery - Save:
- OpenAI API key
- workflow ID
- workflow version if needed
- display mode
- branding options
Usage
Shortcode Mode
Set Display mode to Shortcode window, then place:
[ml_chatbot]
inside a page or post where you want the chatbot to appear.
Popup Mode
Set Display mode to Floating popup.
In this mode the plugin injects the chatbot automatically in the site footer. You do not need to place the shortcode for the popup itself.
Branding Options
From the admin panel you can customize:
Brand nameBrand logoTheme colorChatbot title
The selected theme color is used to derive the chatbot accent styling automatically.
Notes and Disclaimers
- If you use
Floating popupmode, do not rely on[ml_chatbot]for the popup UI. - Theme color, logo, and brand name affect only the chatbot UI, not the WordPress theme.
- Very light colors may reduce contrast and readability.
How ChatKit Works
- the frontend loads OpenAI ChatKit
- WordPress creates a short-lived ChatKit session server-side
- the plugin sends
POST /v1/chatkit/sessions - the request includes:
userworkflow.idworkflow.versionif configured
- WordPress returns only the
client_secretto the browser - the browser never receives your OpenAI API key
Security
- direct file access blocked with
ABSPATH - admin settings sanitized
- AJAX request protected with nonce
- OpenAI API key never exposed to visitors
- server-side OpenAI request via WordPress HTTP API
Developer Hooks
This plugin stays intentionally small, but it exposes a few filters for developers who want to customize behaviour without editing core files:
aph_chatkit_user_identifieraph_chatkit_session_payloadaph_chatkit_request_argsaph_chatkit_timeoutaph_frontend_configaph_chatbot_title
Development Notes
This plugin intentionally avoids:
- build tools
- frontend frameworks
- heavy architecture
- database chat history
- embeddings
- analytics
- enterprise features
The goal is a small plugin that is easy to read and maintain in VS Code.
The repository includes a minimal .gitignore for editor files, archives, logs, and common cache artifacts.
GitHub Suggestions
Good repository description:
WordPress plugin to embed your OpenAI ChatKit agent as a floating popup or embedded chatbot.
Suggested topics:
wordpress plugin openai chatkit chatbot ai popup shortcode agent
Maintainer
- GitHub:
MarianoAkaMery - LinkedIn: https://www.linkedin.com/in/salvatore-mariano-librici-0aaab3202/
License
MIT