Function calling¶
Function calling lets the AI do things, not only talk. The model asks to run a function (for example "get order status"), OG AI Core runs it, and the answer goes back to the model.
What you can connect¶
- WordPress and WooCommerce functions.
- Your own PHP functions, through Code Core.
- The Woo Basics module (Pro).
- Add-on tools such as Web Search, User Memory, Notification Engine and WooAi.
- External MCP servers.
Enable functions for a chatbot¶
- Open the chatbot's settings and find Functions.
- Tick only the functions it needs.
- Test in the live preview.
Safety rules¶
- Give a chatbot the fewest functions possible.
- Keep anything that reads private data for logged-in users only.
- Functions run with the permissions you set. Check what each one can change.
- The AI is limited in how many call rounds it can chain in one reply, to stop loops.
Writing your own¶
See Use function calling.