FloGPT – AI Chat & OTP Login

By flogpt

0+ active installationsVersion 1.4.0

Add FloGPT AI chat to WordPress with one Widget ID, plus optional OTP login by SMS, WhatsApp or email.

Description

FloGPT Chat Widget loads the FloGPT chat widget on your WordPress site with a single Widget ID — no code, no configuration files. All styling and behavior (position, colors, greeting, language, branding, workflows, agent routing) live in the FloGPT dashboard, so changes propagate instantly without touching WordPress.

The plugin uses the same dual-bundle loader as the official FloGPT Shopify themes:

  1. Pushes your widgetId onto the global window.chatflow queue.
  2. Loads flogpt-widget-ui.js (UI bundle) from the FloGPT CDN.
  3. Loads flogpt-widget.js (controller bundle) on top.
  4. Dedupes against window.__flogptWidgetLoaded so the widget is never loaded twice if you also paste the embed snippet into your theme.

Features:

  • AI conversations with workflow and tool support
  • Knowledge base / RAG answers from your own content
  • Live agent handoff with rating
  • Multi-language: English, Spanish, French, Mandarin, Hindi, Arabic, Bengali, Portuguese, Russian, Urdu
  • WhatsApp and social channel handoff
  • Position, colors, branding all controlled from the FloGPT dashboard
  • Optional self-hosted CDN URL for on-prem deployments

OTP login (optional, off by default)

Let visitors sign in with a one-time code instead of a password. Turn it on under Settings → FloGPT Chat → OTP login.

  • Codes by SMS, WhatsApp or email, sent by FloGPT — the site never holds SMS provider keys.
  • Works in India and everywhere else. Indian (+91) numbers are delivered over DLT-registered SMS, as TRAI requires; other countries use Twilio Verify. The plugin detects whether your account is on flogpt.in or flogpt.com from the API key, with a manual override.
  • On wp-login.php (above the password form, or first with the password form one click away), through the [flogpt_otp_login] shortcode, the FloGPT OTP Login block, and on WooCommerce My Account and checkout.
  • First sign-in can create an account or link an existing one by phone (including WooCommerce billing phone) or email.
  • 6-digit codes that expire after 5 minutes, a resend cooldown, per-number and per-visitor rate limits, and single-use verification on FloGPT’s side.
  • Administrators keep signing in with a password unless you allow otherwise, and the classic password form is always reachable at wp-login.php?flogpt_password=1. If FloGPT cannot be reached, visitors are told to use their password.
  • Translation-ready, with Hindi included.

There are no paid features in the plugin. Code delivery is billed in your FloGPT workspace as SMS usage.

External services

This plugin connects your site to FloGPT, a third-party AI customer-engagement service. The plugin is a loader: it does not answer chats itself, so the FloGPT service is required for it to do anything.

What the service is used for

Rendering the chat widget and running the conversation. The plugin injects a small loader script that fetches the widget bundles from the FloGPT CDN, then the widget talks to FloGPT directly from the visitor’s browser.

What is sent, and when

  • On every page view where the widget is enabled, the visitor’s browser requests /widget/flogpt-widget-ui.js and /widget/flogpt-widget.js from the configured CDN origin (https://flogpt.com by default). As with any remote script, this request exposes the visitor’s IP address, user agent, and referring page to the service.
  • Your Widget ID is included so the service can return the correct widget configuration (colors, position, greeting, language, workflows, routing).
  • When a visitor opens the widget and sends a message, the message content and conversation metadata are transmitted to FloGPT so the AI or a live agent can reply. Nothing is sent for visitors who never open the widget beyond the script requests above.

The chat widget does not send your WordPress user accounts, post content, or database contents to the service.

OTP login module (only when you enable it)

When OTP login is switched on, this site’s server — never the visitor’s browser — calls the FloGPT API at https://api.flogpt.in (accounts on FloGPT India) or https://api.flogpt.com (all other accounts):

  • When you save an API key with the region set to “Detect”, the plugin asks both /api/v1/me endpoints which one recognises the key. Only the key is sent.
  • When you click Test connection, it asks /api/v1/otp/channels which channels can deliver codes.
  • When a visitor asks for a code, it sends /api/v1/otp/send the phone number or email address they entered, the channel, the code length and lifetime, the site language, the visitor’s IP address (used only for abuse rate limits), and this site’s address.
  • When the visitor enters the code, it sends /api/v1/otp/verify the code and the verification id from the previous step.

Nothing is sent for visitors who never ask for a code, and no WordPress account data is sent. FloGPT delivers codes through its providers — Twilio (outside India), MSG91 or 2Factor (Indian SMS), Meta WhatsApp, and FloGPT’s email service — which receive the phone number or email address and the code.

Service provider and terms

  • Service: FloGPT — https://flogpt.com
  • Terms of Service: https://flogpt.com/terms
  • Privacy Policy: https://flogpt.com/privacy
  • FloGPT India (flogpt.in accounts), operated by VDigit Solutions Private Limited — Terms: https://flogpt.in/terms, Privacy Policy: https://flogpt.in/privacy

Using this plugin requires a FloGPT account. If you self-host the widget bundles, set the CDN URL setting to your own origin; requests then go to that origin instead.

Installation

  1. Upload the flogpt-chat-widget folder to /wp-content/plugins/, or install the zip via Plugins → Add New → Upload Plugin.
  2. Activate the plugin via the Plugins screen.
  3. Go to Settings → FloGPT Chat and paste your Widget ID from the FloGPT dashboard.
  4. Save. The widget appears in your site footer on every page.

FAQ

Where do I get a Widget ID?

Sign in at https://flogpt.com, open Chat Widgets, and copy the Widget ID for the widget you want to embed.

How do I customize colors / position / greeting?

All of those are configured in the FloGPT dashboard. The plugin only needs the Widget ID — settings are fetched at runtime, so updates appear on your site immediately without re-saving anything in WordPress.

Can I embed the widget on a specific page only?

Yes. Uncheck Show the widget on every page in Settings → FloGPT Chat, then drop [flogpt_chat] into any page or post.

Can I hide the widget for logged-in users?

Yes — Settings → FloGPT Chat → Hide the widget for logged-in users suppresses the loader for any authenticated session.

Does it work with page builders?

Yes — the [flogpt_chat] shortcode works in any builder that accepts shortcodes (Elementor, Beaver, Bricks, Divi, Gutenberg, etc.).

Can I self-host the widget bundles?

Yes — set CDN URL in settings to the origin that serves /widget/flogpt-widget-ui.js and /widget/flogpt-widget.js.

How do I turn on OTP login?

In your FloGPT dashboard, create an API key with the OTP login permission. In WordPress, open Settings → FloGPT Chat → OTP login, tick OTP login, paste the key, choose the channels to offer, and save. Use Test connection to see which channels can deliver codes.

Do Indian numbers need DLT registration?

Yes. TRAI blocks SMS to Indian numbers that does not use a DLT-registered sender ID and template. FloGPT sends Indian codes through its DLT-approved template, or through your own MSG91 or 2Factor account if you connect one in FloGPT. Until your template is approved, offer WhatsApp or email: the login form suggests them automatically when SMS cannot be delivered.

What happens if FloGPT is unavailable?

The form tells visitors that code sign-in is unavailable and to use their password. Password login is never removed, and wp-login.php?flogpt_password=1 always shows the classic form.

Can administrators sign in with a code?

Not by default. Accounts that can manage the site must use their password unless you tick Allow administrators to sign in with a code.

How are existing accounts matched?

By the mobile number saved on the user’s profile (set automatically on first code sign-in, or by an administrator), then optionally by WooCommerce billing phone, and by email address for email codes. If a number matches more than one account, the visitor is asked to use their password.

Screenshots

Changelog

1.4.0

  • New: optional OTP login, off by default. Visitors sign in with a one-time code sent by SMS, WhatsApp or email, on wp-login.php, through the [flogpt_otp_login] shortcode or FloGPT OTP Login block, and on WooCommerce My Account and checkout.
  • Works with FloGPT India (flogpt.in) and FloGPT (flogpt.com); the region is detected from the API key. Indian numbers use DLT-registered SMS.
  • Accounts can be created on first sign-in or linked by phone, WooCommerce billing phone or email. Administrators keep using passwords unless allowed.
  • Settings page now has Chat widget and OTP login tabs.
  • Mobile number for code sign-in on user profiles, editable by administrators.
  • Translation-ready with a bundled .pot; Hindi (hi_IN) included.

1.3.0

  • Fixed: the [flogpt_chat] shortcode and the sidebar widget rendered nothing when Show the widget on every page was unchecked — which is the documented way to place the widget on selected pages only. That setting now governs automatic injection alone; explicit placements always render.
  • Scripts are registered through wp_enqueue_script() and wp_add_inline_script() instead of a hand-written <script> tag, so caching, concatenation and deferral plugins can see them.
  • Security: the shortcode’s undocumented cdn_url attribute is removed. It flowed into a script src without a protocol check, letting any user who can publish a post load JavaScript from an arbitrary origin. The CDN origin is an administrator setting, and is now restricted to http and https.
  • Tested against WordPress 7.1.

1.2.0

  • Documented the FloGPT external service in readme and on the settings screen: what is sent, when, and links to the terms and privacy policy.
  • Settings can now be saved without a Widget ID, so the widget can be switched off or reconfigured without clearing the form first.

1.1.0

  • Renamed plugin slug, classes, constants, options, and shortcode from uxmessage-* to flogpt-*. The legacy [uxmessage_chat] shortcode is removed; use [flogpt_chat].
  • Loader rewritten to match the FloGPT Shopify theme snippet: dual-bundle (UI + controller), window.chatflow queue, dedupe via window.__flogptWidgetLoaded.
  • Added a configurable CDN URL setting for self-hosted deployments.
  • Added Hide for logged-in users option.
  • Settings page moved under Settings → FloGPT Chat with a quick “Settings” link from the Plugins list.
  • Old uxmessage_settings option is cleaned up on uninstall for sites upgrading from 1.0.x.

1.0.1

  • Simplified configuration — only Widget ID required.
  • Widget settings automatically fetched from the FloGPT dashboard.

1.0.0

  • Initial release.