Skip to content

Releases: scottjgd/printcraft-ai-assistant

PrintCraft AI Assistant v1.0.11

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 12:32

v1.0.11 — Clickable Email Addresses

What was broken

Email addresses mentioned by Craft in the chat (e.g. info@printcraftcreations.ca) appeared as plain unclickable text. Only http:// URLs were being converted to links.

What's fixed

The message renderer now detects email addresses and wraps them in mailto: links, so customers can click directly to open their email client.

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update.

PrintCraft AI Assistant v1.0.10

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 04:48

v1.0.10 — Fix Knowledge Base Learning

What was broken

The knowledge base was never learning from customer interactions — three bugs in the feedback chain:

  1. Wrong message ID — the browser was sending a DOM element ID (like pcai-msg-1234) as the message_id. PHP's intval() on that string = 0, so feedback was always saved against a non-existent row
  2. Answer always empty — the feedback handler was passing answer: '' every time. The knowledge base only adds an entry when the answer is non-empty, so it never learned anything
  3. DB row ID never sent to browser — the AJAX handler captured the inserted DB row ID but never included it in the response

What's fixed

  • The AJAX response now includes msg_db_id — the real database row ID
  • That ID is stored on each message element and used correctly when submitting feedback
  • The actual bot reply text is now passed as the answer to the knowledge base
  • Result: clicking 👎 on an unhelpful response now correctly adds that Q&A pair to the knowledge base for future improvement

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update.

PrintCraft AI Assistant v1.0.9

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 04:41

v1.0.9 — Fix Escalation Not Triggering

Root cause found & fixed

The AI sometimes returns a plain-text response instead of JSON (this is normal GPT behaviour). When that happened, the plugin hit an early exit that returned escalate: false before the keyword detection code ever ran — so "can I speak to someone else" was ignored completely.

What's fixed

  • PHP: The non-JSON early-exit path now runs is_explicit_escalation_request() before returning, so escalation is never skipped
  • JS: Added a second layer of keyword detection in the browser — if the server misses it for any reason, the client catches "speak to someone / someone else / can I speak / transfer me" etc. and shows the contact form anyway
  • This double-layer approach means escalation should now work reliably regardless of what format the AI returns

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update.

PrintCraft AI Assistant v1.0.8

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 04:15

v1.0.8 — Fix Contact Form Escalation

What's fixed

  • Contact info always saved — if the escalation record wasn't created yet when the customer submits the contact form, the plugin now creates it automatically so no contact info is ever lost
  • Form submission errors now visible — if the AJAX call fails (network error, server issue), the customer now sees a clear error message and a re-enabled button instead of a false "Thanks!" confirmation
  • Contact form layout fixed — corrected a CSS display conflict that could prevent the form from rendering correctly after sliding in

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update.

PrintCraft AI Assistant v1.0.7

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 04:03

v1.0.7 — Polished Chat Widget

What's new

  • Gradient header with smooth blue gradient and a clean curved bottom edge
  • "We're online" teaser label slides in next to the button after 3 seconds to invite visitors to chat, then fades away
  • Online status dot — green pulse indicator in the header and on the avatar
  • Message animations — each message slides in smoothly instead of popping in
  • White bot bubbles with subtle shadow (easier to read than flat grey)
  • Gradient user bubbles and send button for a premium feel
  • Pulse ring on the chat button when the notification badge appears
  • Spring animation when the panel opens
  • Contact form redesigned to match the overall widget style
  • Fully responsive on mobile

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update.

PrintCraft AI Assistant v1.0.6

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 03:39

v1.0.6 — Reliable Escalation

What's fixed

  • Escalation now triggers reliably when a customer asks to speak to a person — "can I speak to someone else", "talk to a human", "connect me with your team", etc. are now caught server-side in PHP, so escalation works even when the AI doesn't set the flag in its response.

Phrases that now always trigger escalation

speak to someone / talk to a human / someone else / can I speak / real person / transfer me / connect me with / get an agent / prefer a human

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update.

PrintCraft AI Assistant v1.0.5

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 03:08

v1.0.5 — Fix Error Message Display

What's fixed

  • No more raw HTML tags in error messages — the contact link now shows as a clean clickable URL
  • Feedback buttons (👍/👎) no longer appear on API error messages — only shown on real AI responses
  • Contact form correctly suppressed on API connection errors — only appears for genuine AI escalations

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update, or download the ZIP below.

PrintCraft AI Assistant v1.0.4

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 02:58

v1.0.4 — Fix Contact Form Appearing on API Errors

What's fixed

  • "Hello" now always gets a warm reply — greetings (Hi, Hello, Hey, etc.) are handled locally without an API call, so they never fail
  • Contact form no longer pops up on API/connection errors — the contact form now only appears when the AI genuinely decides to escalate (e.g. a complex order issue). If there's a technical problem with the AI connection, the user sees a helpful message with the contact page link instead
  • API error messages no longer show feedback buttons (👍/👎) since there's no AI response to rate
  • Feedback-free fallback links are properly clickable (e.g. printcraftcreations.ca/contact)

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update, or download the ZIP below.

PrintCraft AI Assistant v1.0.3

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 02:48

v1.0.3 — Smarter AI + Customer Contact Collection

What's fixed

AI responding much better to common issues:

  • "Wrong size", "wrong item", "damaged order" questions are now answered using the returns policy instead of instantly escalating
  • AI escalation rules tightened — only escalates when a specific order lookup is needed, a legal/billing dispute exists, or the customer explicitly asks for a human
  • When the AI does escalate, it still gives a helpful answer rather than just "I can't help"

Customer contact info collection (major new feature):

  • When a chat escalates to human support, the widget now shows a contact form asking for the customer's name, email, and phone number
  • Contact info is stored on the escalation record and shown in the Escalations admin panel
  • A second email notification fires as soon as the customer submits their contact info — so you can follow up right away
  • Escalation cards show a blue "📞 Customer Contact Info" box with clickable email/phone links
  • Cards without contact info show a note that the customer was asked in chat

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update, or download the ZIP below.

PrintCraft AI Assistant v1.0.2

Choose a tag to compare

@scottjgd scottjgd released this 03 Jul 02:29

v1.0.2 — Mobile Admin Fixes

What's fixed

  • Escalation page: Status, Internal Notes, and Update button now stack cleanly on mobile — no more cut-off elements
  • Knowledge Base table: Answer, Source, and Uses columns hidden on mobile; table scrolls horizontally
  • Conversations table: Avg Confidence and Started columns hidden on mobile
  • Escalation card header: wraps properly on narrow screens
  • Filter buttons: wrap to next line instead of overflowing

How to update

Go to Plugins → PrintCraft AI Assistant → Update Available and click Update, or download the ZIP below.