Skip to content

Leads

Pro built-in module. Every form message on your site in one screen: Elementor forms, OG AI Forms and your own forms. See totals and trends, search and filter, set a status, add notes and export to CSV.

Open it from the OG AI Core rail (admin.php?page=ogaie_leads). Only administrators can open it.

Requires: an OG AI Core Pro licence.

Where leads come from

Source How On by default
Elementor forms Read live from Elementor Pro's own form submissions. Leads never writes to them, not even the "read" flag. Yes, when Elementor Pro has submissions
OG AI Forms Every answered AI Form, with what the visitor typed and the AI reply. No. Tick Save AI Form questions as leads in the screen's Settings card.
Your own forms Any code that calls the ogaie_lead_capture action (below). Yes

The screen

  • Totals and trend, with leads by form and by page.
  • A searchable list you can filter by status, source and form.
  • Status: new, contacted, won, lost or spam.
  • Notes: add a note to any lead. Each lead keeps its notes history.
  • CSV export of the leads that match your filters.

Staff messages (from an email on your site's own domain, or from an administrator account) and spam are hidden by default, so test messages do not fill the list.

Developers

Tables: {prefix}ogaie_leads holds captured leads. {prefix}ogaie_lead_state holds the status and notes of every lead, keyed el:<submission id> for Elementor and og:<lead id> for captured leads. Up to 5,000 rows are read into the screen.

Capture a lead from your own form:

do_action( 'ogaie_lead_capture', [
    'source'   => 'my_form',          // default 'og_forms'
    'form'     => 'Quote request',
    'form_id'  => 'quote',
    'page_url' => home_url( '/quote/' ),
    'name'     => $name,
    'email'    => $email,
    'message'  => $message,
    'fields'   => [ 'Budget' => $budget ], // up to 60 extra fields
] );

Other keys: page_title, reply, user_id and created_at (Y-m-d H:i:s). Values are cleaned and cut to safe lengths.

Filters:

Filter Arguments Use
ogaie_leads_form_label string $label, string $scope, string $form_id, array $params The form name shown for an AI Form lead.
ogaie_leads_staff_domains array $domains (default: your site's own domain) Email domains counted as staff and hidden by default.

MCP tools: ogleads_get_stats, ogleads_list_leads, ogleads_get_lead, ogleads_update_lead and ogleads_export_summary. Leads hold personal data, so these tools are for administrators only, are off until you tick Leads under Settings > MCP > MCP Tool Sets, and are never part of the Public MCP. See MCP tools.

Leads has no REST route and nothing on the front end except the capture, which only writes.

Modules · AI Forms · Contact Form