Back to Main Site

Perfex CRM Ticket AI Copilot, Smart Canned Responses & Multimodal Automation Engine

PolyUtilities for Perfex CRM v3.7.0 embeds a live Poly AI Copilot toolbar directly onto native Perfex CRM Ticket pages (admin/tickets/ticket/{id}), pairs it with / Smart Canned Responses featuring automatic ticket variable interpolation, and powers an IF/THEN Automation Rules Engine capable of evaluating typed text alongside AI voice transcripts (up to 25MB audio) and image Vision summaries (up to 5MB screenshots). Built independently by HeadRandom for Perfex CRM, these three support accelerators deliver 2x to 3x faster ticket drafting in 800ms to 2s per request (starting at $0 on Gemini free tier or $0.15 per 1M input tokens on gpt-4o-mini with a 128K context window) while enforcing strict staff_can_access_ticket BOLA authorization and zero native browser popups.

Inline Poly AI Copilot Toolbar on Perfex Core Tickets

When AI Hub is enabled and a staff member holds the Use AI permission, Poly_omnichat_bootstrap injects a clean, unobtrusive Poly AI Copilot bar directly above the reply editor on admin/tickets/ticket/{id} without modifying any Perfex core files.

Perfex Core Ticket Page with Integrated Poly AI Copilot Toolbar and Smart Canned Responses

Copilot Action How It Accelerates Ticket Resolution Output & Editor Behavior
AI Draft Reply Reads full ticket subject, thread history, and configured company persona to draft one ready-to-send answer Inserts directly into the TinyMCE/textarea reply editor for review before sending
3 Smart Replies Generates exactly 3 short reply chips (under 140 chars each) returned as a strict JSON array Click any chip to drop the reply straight into the composer in 1 click
Rewrite Tone Rewrites the agent's current rough draft in professional, friendly, or concise style while preserving facts Replaces the draft cleanly without losing technical IDs or refund numbers
Fix Grammar Corrects spelling, punctuation, and grammar in the draft's original language Keeps customer language intact across all 16+ supported locales
Summarize Condenses lengthy 20-reply tickets into 3 to 5 handover bullet points (issue, facts, next step) Displays inside an inline collapsible summary card above the editor
Sentiment Classifies thread mood as positive, neutral, negative, or angry with confidence score and 1-sentence reason Highlights high-risk escalations immediately for team leads
AI Translate Modal Opens an accessible Light/Dark custom modal (Escape key, zero window.prompt) with 8 quick-select languages plus custom target input Translates inbound customer messages or outbound drafts on demand

Safe Error Recovery & Object-Level Ticket Authorization

Every Ticket AI Copilot endpoint runs two mandatory safeguards before spending a single AI token:

  1. Strict staff_can_access_ticket BOLA Guard: Every AJAX call verifies that the authenticated staff member is legally permitted to view the requested {ticket_id} based on Perfex department assignments and admin roles. Out-of-scope ticket IDs return an immediate HTTP 403 error.
  2. Non-Blocking Error Banners with Settings Shortcut: If no API key is configured, the daily budget cap is hit, or an upstream AI provider returns an HTTP 4xx/5xx error, the toolbar always releases its loading/disabled state cleanly and renders an inline diagnostic banner with a direct 1-click link to OmniChat & AI Hub > Settings > AI Hub (covered in detail in our Multi-Provider AI Hub & Key Vault guide).

/ Smart Canned Responses with Live Variable Interpolation

Repetitive support questions (onboarding steps, billing verification, SSL checklist, refund policy) no longer require copying templates from external spreadsheets. Under OmniChat & AI Hub > Settings > Canned Responses, admins manage a categorized library of reusable macros triggered by typing / (or clicking the Lightning icon) inside both Perfex Core Tickets and the Unified 3-Panel Inbox.

Placeholder Token Live Value Resolved Automatically Supported Surfaces
{CLIENT_NAME} Customer company name linked to the ticket or chat Perfex Tickets & Unified Inbox
{CONTACT_NAME} Full name of the submitting client contact or sender Perfex Tickets & Unified Inbox
{STAFF_NAME} Full name of the currently logged-in support agent Perfex Tickets & Unified Inbox
{TICKET_ID} Numeric Perfex CRM ticket identifier Perfex Tickets & Ticket-linked chats
{TICKET_SUBJECT} Exact subject line of the open support ticket Perfex Tickets

Pro Workflow: Type /refund to drop a structured policy template with {CLIENT_NAME} and {TICKET_ID} pre-filled, then click Rewrite Tone (Friendly) on the Poly AI Copilot toolbar to personalize the wording for that exact customer in under 5s.

IF/THEN Automation Rules Engine (Multimodal-Aware)

Located under OmniChat & AI Hub > Settings > Automation Rules, Poly_omnichat_automation_engine turns incoming conversations into deterministic automated workflows with Active / Paused switches, per-rule Hit Counters, and an optional stop_processing flag to prevent lower-priority rules from overriding urgent escalations.

Triggers, Condition Operators & Automated Actions

  1. 4 Supported Trigger Events:
    • inbound_message: Fires on every new customer message across Client Portal Live Chat and all 9 external channels.
    • new_conversation: Fires once when a brand-new thread opens (ideal for welcome tagging and initial department routing).
    • outside_hours: Fires when a customer messages outside your configured Mon-Sun schedule (paired seamlessly with AIO Support 2.0 Business Hours).
    • sentiment_alert: Fires when AI detects negative or angry customer sentiment.
  2. 6 Condition Operators (UTF-8 Case-Insensitive): Combine multiple AND conditions using equals, not_equals, contains, not_contains, starts_with, or regex against fields such as channel_type, body, multimodal_body, sender_name, or sentiment.
  3. 8 Built-in Actions:
    • assign_staff: Route thread directly to a specialist staff ID.
    • assign_department: Assign to a Perfex support department ID.
    • set_status: Move conversation to open, pending, or resolved.
    • set_priority: Escalate priority to low, normal, high, or urgent.
    • add_tag: Attach filterable tags (e.g., vip-refund, whatsapp-urgent).
    • create_ticket: Automatically generate a Perfex CRM Ticket with full transcript attachment in the selected department.
    • notify_staff: Push an instant Perfex in-app bell notification linking directly to poly_utilities/omnichat?conversation_id={id}.
    • ai_auto_reply: Generate and dispatch a context-aware AI response using the latest 12 messages of conversation history (build_transcript_excerpt).

Why Multimodal Evaluation Matters in Production

Unlike basic keyword bots that ignore non-text attachments, Poly_omnichat_automation_engine evaluates multimodal_body built via Poly_omnichat_ai_service::format_multimodal_context(). If a customer sends a WhatsApp voice note saying "I need an urgent refund for invoice 402" or uploads a screenshot showing an "HTTP 500 payment failed" dialog, OmniChat transcribes the voice note / summarizes the screenshot first, feeds the enriched text into your IF/THEN conditions, triggers set_priority: urgent + create_ticket + notify_staff, and increments the rule hit counter automatically.

3 High-Impact Automation Blueprints You Can Copy Today

  • 24/7 After-Hours WhatsApp & Messenger Coverage: Trigger outside_hours -> Condition channel_type equals whatsapp -> Actions: add_tag (after-hours) + ai_auto_reply.
  • Urgent Refund & Billing Escalation (Text + Voice + Screenshot): Trigger inbound_message -> Condition multimodal_body regex (refund|chargeback|payment failed|500 error) -> Actions: set_priority (urgent) + create_ticket (Billing Department) + notify_staff (Billing Manager) + enable stop_processing.
  • VIP Negative Sentiment Rescue: Trigger sentiment_alert -> Condition sentiment equals angry -> Actions: set_priority (urgent) + add_tag (escalation) + assign_staff (Senior Lead) + notify_staff.

Check live rule hit rates and ticket automation impact inside the PolyUtilities v3.7.0 Executive Master Dashboard, or learn how files attached to tickets and chats stay protected in the 10-Layer Pure-PHP File Security guide. For first-time setup, follow the PolyUtilities Installation Guide, or reach out via HeadRandom's custom Perfex module services if you need tailored workflow actions.

Ready to equip your Perfex support desk with native AI drafting, slash macros, and multimodal triage? Explore licensing and live demo details on the PolyUtilities for Perfex CRM product page.

Frequently Asked Questions

Does Poly AI Copilot modify Perfex CRM core ticket files?

No. The toolbar attaches cleanly via Perfex CRM's native app_admin_head and app_admin_footer hooks only on admin/tickets/ticket/{id} pages when AI Hub is active and the staff member holds Use AI permission. Future Perfex core updates never overwrite it.

Can non-admin support staff use Ticket AI Copilot without seeing AI API keys?

Yes. Perfex Role Permissions split AI access into two separate capabilities: Use AI (allows drafting, summarizing, translating, and canned macros on tickets and inbox) and Manage AI (restricted to administrators managing the encrypted API Key Pool, models, and daily budget limits).

Do Automation Rules work on customer voice notes and error screenshots?

Yes. When Voice Note Transcription (STT) and AI Vision Analysis are enabled in Multimodal AI settings, OmniChat merges the audio transcript and image summary into multimodal_body before executing Poly_omnichat_automation_engine, allowing keyword and regex rules to match spoken words and screenshot error codes.

Can an automation rule trigger AI Auto-Reply twice on the same message?

No. Poly_omnichat_automation_engine tracks $aiAutoRepliedIds per conversation turn and honors OmniChat's per-conversation AI cooldown window so customers never receive duplicate automated replies even if multiple rules match.

Are custom Canned Responses shared across both Perfex Tickets and Unified Inbox?

Yes. Every / macro you create under OmniChat & AI Hub > Settings > Canned Responses becomes instantly searchable across both the Unified Inbox composer and Perfex Core Ticket reply editors, automatically interpolating live placeholders such as {CLIENT_NAME}, {STAFF_NAME}, and {TICKET_ID}.

PolyUtilities boosts Perfex CRM with powerful customization and workflow enhancements. Create multi-level menus, group menus by purpose, embed iframe links, open content in popups, and reorganize system navigation with drag-and-drop. Add dynamic widgets across dozens of display positions, use right-click navigation, manage custom JS/CSS, support multi-company and multi-address structures, and convert selected text into tasks instantly. Combined with banners, announcements, quick-access shortcuts, and many smart utilities, PolyUtilities turns Perfex CRM into a faster, cleaner, and highly personalized workspace for every team member.

HeadRandom Perfex CRM Engineering

Need a Custom Perfex CRM Module, Bug Fix, or CodeIgniter 4 Upgrade?

Avoid broken updates, PHP 8.2-8.4 errors, and risky core edits. HeadRandom provides custom Perfex CRM module development, upgrade, and bug-fixing services for any third-party or custom module on your Perfex CRM installation, plus upgrading Perfex CRM from CodeIgniter 3 to CodeIgniter 4 via IgniteCore for Perfex CRM.

Build, Upgrade & Fix Any Perfex CRM Module

Develop new custom modules from scratch, patch bugs or hook conflicts on existing client modules, and update legacy code for clean PHP 8.2-8.4 compatibility with zero core file hacks. View Perfex CRM module development scope.

CodeIgniter 3 to CodeIgniter 4 via IgniteCore

Migrate your Perfex CRM runtime to CodeIgniter 4 (4.7.6) using IgniteCore for Perfex CRM (independent module by HeadRandom) with Dual-Mode CI3 fallback, 32% to 75% lower latency, 50% less RAM, and custom CI4 porting for third-party modules. See CI3 to CI4 upgrade options.

40+ Commercial Modules Published100% Zero Core File Edits0 High Security Audit GateTransparent Pricing from $39

Combine 2+ HeadRandom services (Custom Module, IgniteCore CI4 Upgrade, or Website Care) to save 30% automatically.