• Resolved franzinho22

    (@franzinho22)


    Hi, I’ve built a Callable function in Code Engine (salva_lead_brevo). It’s set to type Callable, it’s Enabled, and it runs correctly in the Test tab (returns HTTP 201 — the contact is created in my Brevo list). Code Engine displays it correctly as → salva_lead_brevo();.

    However, in the chatbot settings → Functions section, I still get the red banner “No functions registered yet” and the function never appears in the dropdown, so I can’t select it.

    Already tried, without success:

    • Cache purge (WP Rocket) + hard refresh
    • Toggling the function Enabled off/on
    • Confirmed I’m editing the correct chatbot (Default)

    Is there a setting I’m missing, or is this a known registration issue between Code Engine and AI Engine? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi franzinho22,

    Your salva_lead_brevo snippet is set up correctly. “Callable” with a clean function name is exactly the right config. The issue isn’t on the Code Engine side at all.

    The bridge that exposes Code Engine callables to the chatbot’s Functions dropdown is part of AI Engine Pro, not the Free version. I’m really sorry for the confusion. In the past the Functions section only appeared on Pro, but a few weeks ago I made it visible as soon as the model supports function calling, and I forgot to update the empty-state message to flag the Pro requirement. That misleading copy is on me, sorry 😔

    On the Free version, function calling can still be wired up manually if you’re comfortable writing code: define the function via the mwai_functions_list WordPress filter and execute it via mwai_ai_feedback. But the Code Engine no-code path is Pro-only.

    I’m shipping a new release today or tomorrow so the next person landing here sees a clear message instead of falling into the same trap. Again, sorry about misleading you!

    Cheers,
    Jordy.

    Thread Starter franzinho22

    (@franzinho22)

    Hi Jordy,

    No worries at all — thanks for the honest and detailed explanation, much appreciated. Glad to hear the snippet itself was set up correctly.

    We’ve decided to go with AI Engine Pro: for our use case the no-code Code Engine path is worth it, and the price is more than reasonable. We’ll upgrade, update both plugins, clear the cache, and wire up our salva_lead_brevo callable from the Functions dropdown.

    Good call on fixing the empty-state copy — it’ll save the next person the same head-scratching. Thanks again for the support.

    Cheers, Franz

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.