LocalBot AI – Documentation v1.1.2

Thank you for purchasing LocalBot AI. This guide explains how to install, configure, and use the plugin on your WordPress site.

1. Overview

LocalBot AI is a Gemini‑powered AI chatbot and lead capture plugin for local service businesses (plumbers, electricians, HVAC, roofers, cleaners, and more).

2. Requirements

3. Installation

  1. Download the plugin ZIP from Envato.
  2. In WordPress admin, go to Plugins → Add New → Upload Plugin.
  3. Upload the ZIP and click Install Now, then Activate.
  4. You will see a new menu item: LocalBot AI in the left sidebar.
Important: Do not run any older “localbot-ai” plugin version alongside this build. Only this copy should be active.

4. 5-Minute Setup (Do This First)

  1. Activate the plugin from Plugins.
  2. Add Gemini API key at LocalBot AI → Settings → API, then click Test.
  3. Add business basics at Settings → General (business name, phone, service area, hours, timezone).
  4. Open your website front end and send one test message in the chat widget.
  5. Submit a test lead and confirm it appears in LocalBot AI → Leads.
Success check: In LocalBot AI → Dashboard, Setup Progress should move toward 3/3 completed.

5. Quick Start

5.1 Configure business details

  1. Go to LocalBot AI → Settings → General.
  2. Fill in:
    • Business name
    • Business phone and optional Emergency phone
    • Service area (e.g. “Dallas, TX”)
    • Hours open / close and Timezone
  3. Check the “Current time in this timezone” line to verify that the plugin understands your hours correctly (it will tell you if the bot is currently within business hours or after hours).
  4. Click Save settings.

5.2 Connect Gemini API

  1. Go to LocalBot AI → Settings → API.
  2. Paste your Gemini API key from Google AI Studio.
  3. Select a model (for example gemini-2.0-flash).
  4. Set Max output tokens (150–400 is usually enough for short lead‑capture replies).
  5. Click Test. A small “Connected” label should appear if the key is valid.

5.3 Choose niche & prompt

  1. Go to Settings → Template.
  2. Select a Business niche (plumber, electrician, HVAC, etc.).
  3. Optionally add a Custom prompt:
    • You can use placeholders: {business_name}, {service_area}, {emergency_phone}
    • Example:
You're a friendly AI assistant for {business_name} in {service_area}.
Always prioritize emergencies and make sure to collect the visitor's name, phone, service type, and zip code.
  1. Optionally add FAQ / knowledge text. This is appended to the system prompt and used when relevant.

5.4 Configure widget & lead form

  1. Go to Settings → Widget:
    • Choose Position (Bottom right / Bottom left).
    • Set Primary color, widget title, welcome message, and input placeholder.
    • Decide whether to Show on mobile, and whether to auto‑open the chat after delay.
  2. Go to Settings → Lead Form:
    • Toggle which fields to collect: name, phone, email, zip code, service type.
    • Edit Service options (comma‑separated list).
    • Decide if Phone is required.
    • Optionally require a consent (GDPR) checkbox and set a Privacy Policy URL.
    • Customize the Thank you message shown after submission.

5.5 Notifications & integrations

6. Demo Data

For preview purposes, you can import demo leads and analytics:

  1. Go to LocalBot AI → Dashboard.
  2. Click the Import demo data button.
  3. If there are currently no leads in the database, the importer will:
    • Create a demo location.
    • Create one demo chat session and lead.
    • Insert one demo analytics row for today.

You can now explore the Dashboard, Leads, and Analytics screens using sample data.

7. Admin Screens

7.1 Dashboard

7.2 Leads

7.3 Locations

7.4 Analytics

Shows one row per day with:

7.5 Logs

Lists recent log entries from:

7.6 Settings

Tabs:

TabDescription
GeneralBusiness information, phone numbers, service area, hours, timezone.
APIGemini API key, model, max tokens, temperature, per‑IP rate limit.
TemplateNiche, optional custom prompt, FAQ / knowledge and emergency keywords.
WidgetPosition, colors, title, welcome message, placeholder, mobile visibility, delay, auto‑open.
Lead FormWhich fields to collect, service options, require phone, thank you message.
NotificationsEmail notifications, email subject, include transcript, review link and text.
IntegrationsWebhook URL and secret, default location ID.

Additional admin pages include Documentation and Tools (settings import/export).

8. Front-end Behaviour

9. Tools (Import / Export)

10. Improving AI Replies

11. Database Tables

TablePurpose
wp_localbot_leadsStores leads, status, urgency, and metadata.
wp_localbot_messagesChat messages per session (user & assistant).
wp_localbot_analytics_dailyDaily aggregates for chats, leads, errors, tokens.
wp_localbot_logsSystem logs (errors, webhooks, rate limits).
wp_localbot_locationsLocations for multi‑location setups.

12. Uninstall

When you delete the plugin from Plugins → Installed Plugins, the uninstall routine will:

Use this only on staging or when you are sure you no longer need the stored leads and transcripts.

13. Troubleshooting

14. Translation

The plugin is fully translation‑ready:

If you run into issues, please contact support via your Envato downloads page with as much detail as possible (screenshots, error logs, and steps to reproduce).