✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount
✨ New Plugin Alert ✨ SleekRank is now available with €50 launch discount

AI chatbot with tool use: function calls and external integrations

SleekAI exposes a tool layer the chatbot can invoke during a conversation, WordPress core functions, custom PHP, WP-CLI, REST endpoints, external APIs, each tool capability-checked and logged, all running on your OpenAI, Anthropic, Google, or OpenRouter key.

♾️ Lifetime License available

SleekAI chatbot for Tool-Using Chatbot

Function calling without the agent framework overhead

Tool use is the feature that moves a chatbot from interesting to useful. The model proposes a structured function call, the runtime executes it, the result is fed back, and the conversation continues with that result in context. Every modern provider supports it: OpenAI function calling, Anthropic tool use, Google function declarations, OpenRouter passthrough. The hard part is not the model API, it is wiring the tools into your WordPress site safely.

SleekAI ships a tool registration layer that handles the wiring. You register a PHP function with the sleek_ai/register_tool filter, describe its parameters, attach a capability check, and the chatbot can now invoke it during conversation. The tool description shows up in the system prompt, the model emits a structured call when needed, SleekAI validates parameters and capability, runs the PHP, and feeds the JSON result back to the model. Every step is logged so you can debug.

This is different from agent mode in tone. Agent mode is meant for write-heavy tools the model uses on the user's behalf. Tool-using chat is meant for read-heavy tools that enrich the conversation: lookup an order by ID, fetch the latest stock count from an external API, run a saved WP-CLI report. The model still answers in natural language, the tool just gives it real data to base the answer on, instead of guessing.

Workflow

How the tool-using chatbot fits together

1

Identify lookup needs

List the data the bot needs to answer accurately: order status, stock levels, ticket state, geocoding, weather. Each of these becomes a tool. Aim for small focused tools rather than one mega-tool.
2

Register tools in PHP

Add a filter callback on sleek_ai/register_tool returning the tool definitions. Each tool has a name, parameter schema, capability, and PHP function. The plugin reads the registry per chatbot render.
3

Pick a tool-capable model

Use a model that supports native function calling: GPT-4 class, Claude Sonnet, Gemini 1.5 Pro. Cheaper models often hallucinate parameter names. Set the model per chatbot so chat-only personas can stay cheap.
4

Watch the tool log

The conversation log filters by tool name. Tools that fail often have unclear descriptions, fix the description. Tools that get called when they should not have indicate the model is over-eager, adjust the system prompt.

Try it now

A typical tool-using conversation

A support user asks about an order and a stock level. The bot transparently calls two tools, gets real values, and answers with them.

Comparison

Generic chatbot vs SleekAI tool-using chat

Generic chatbot

  • No function-call layer, every answer comes from training data or RAG
  • Cannot lookup live orders, stock levels, user accounts in the database
  • No way to call external REST APIs from inside the conversation
  • Hallucinates values when asked for specifics it cannot retrieve
  • Tool descriptions and capability checks not configurable per bot

SleekAI chatbot

  • Pluggable tool layer via sleek_ai/register_tool filter
  • Tools can wrap WordPress core, WP-CLI, REST endpoints, external APIs
  • Capability check enforced before execution, no overreach
  • Tool call results logged with parameters and JSON response
  • Per-bot allowlist of tools, tune cost and risk per persona

Features

What SleekAI gives you for Tool-Using Chatbot

Register tools in PHP

Add a tool with a single filter hook: name, description, JSON-schema parameters, capability, PHP callback. SleekAI surfaces the tool to the model and validates every invocation before running your callback.

External API tools

Tool callbacks are just PHP functions, so they can call any external REST API: shipping providers, CRMs, weather, geocoders. The model gets the JSON result and weaves it into the conversation in natural language.

Validated parameters

Each tool parameter is JSON-schema typed. SleekAI rejects malformed calls before they reach your PHP, so a hallucinated parameter never crashes a callback. Defaults and required flags work the same as WordPress REST.

Use cases

Where tool use earns its keep

Order and ticket lookups

The bot calls lookup_order or lookup_ticket with an ID, pulls live data from WooCommerce or the helpdesk plugin, and answers with shipping status, tracking, and ETA.

Inventory and pricing

Tools call get_stock_level and get_price against postmeta or external supplier APIs so the bot always quotes current values rather than what was in training data or last week's cache.

Routing and geocoding

A geocode tool turns an address into coordinates, a routing tool checks nearest store from a list. The bot answers location-aware questions on a brochure WordPress site without a separate widget.

The bigger picture

Why tool-using chat matters

Plain chatbots make up data when they cannot retrieve it. They quote yesterday's stock count, last quarter's prices, or last week's shipping status. Even with retrieval-augmented generation the answers are only as fresh as the index, which is fine for blog content but not for the operational data customers actually ask about.

Tool use closes that gap by letting the model fetch live values inside the conversation. The visitor asks about order 41822, the model calls lookup_order, the order details come back from the live WooCommerce table, and the answer is grounded in current truth. There is no stale cache, no training cutoff, no hallucinated tracking number.

That is what makes a chatbot feel reliable over time. Tool use also extends what a WordPress site can do without bolt-on tools. A simple chatbot can become the front end for a CRM lookup, a shipping API check, a geocoder, a weather feed, a stock-level pull, or any internal endpoint the site already exposes.

Each of those would normally need a custom widget, a custom shortcode, a separate UX. With tools they all collapse into one chat surface that the visitor already knows how to use. The other benefit is operational visibility.

Every tool call is logged with parameters and result, so you can see which integrations carry the conversation and which are noise. That feedback is hard to get from a wired-up dashboard, but it falls out of the chat log naturally. Once you start measuring it, you tune the bot toward the tools that matter and retire the ones that do not.

Questions

Common questions about SleekAI for Tool-Using Chatbot

Add a filter on sleek_ai/register_tool that returns an array describing the tool: name, description, parameters as a JSON schema, capability, and a PHP callback. The plugin reads the registry on each chatbot render and surfaces the matching tools to the model. No build step required.

 

OpenAI function calling, Anthropic tool use, Google Gemini function declarations, and any OpenRouter model that exposes them. SleekAI normalizes the call format internally so the same tool definition works across providers. Models that do not support function calls simply skip the tool layer.

 

SleekAI validates every tool call against the registered list before execution. If the model emits an unknown tool name, the runtime returns an error to the model so it can correct itself, and the failed attempt is logged. No PHP callback runs without a registered match.

 

Yes. Tool callbacks run server-side in PHP, so they can use wp_remote_get and pass secrets from constants or the options table. The model never sees the API key. Only the request and the response shape are visible in the tool description.

 

SleekAI enforces a per-conversation tool call limit, default 10, configurable per chatbot. If the model tries to exceed the limit it gets an error and is steered to summarize instead. This avoids accidental loops that would burn external API quota.

 

Each tool can declare a cache TTL. SleekAI caches results keyed by the parameter hash for that TTL, which prevents repeated identical calls within a single conversation from hitting the same external API. Cache can be bypassed with a force flag if you need a fresh fetch.

 

Both. Read-only tools are common, but tools can also create or update WordPress data. For destructive side effects, agent mode patterns apply: capability check, optional confirmation, audit log entry. Tool use and agent mode share the same registry.

 

The conversation log stores each tool invocation as a sub-row: tool name, parameters JSON, result JSON, latency, and any error. You can filter the log by tool name to see which tools are used most and which fail validation. Useful for tuning the description so the model picks the right tool.

 

Pricing

More than 1000+
happy customers

Explore our flexible licensing options tailored to your needs. Upgrade your license anytime to access more features, or opt for a lifetime license for ongoing value, including lifetime updates and lifetime support. Our hassle-free upgrade process ensures that our platform can grow with you, starting from whichever plan you choose.

Starter

€79

EUR

per year

  • 3 websites
  • 1 year of updates
  • 1 year of support

Pro

€149

EUR

per year

  • Unlimited websites
  • 1 year of updates
  • 1 year of support

Lifetime ♾️

Most popular

€249

EUR

once

  • Unlimited websites
  • Lifetime updates
  • Lifetime support

...or get the Bundle Deal
and save €250 🎁

The Bundle (unlimited sites)

Pay once, own it forever

Elevate your WordPress site with our exclusive plugin bundle that includes all of our premium plugins in one package. Enjoy lifetime updates and lifetime support. Save significantly compared to buying plugins individually.

What’s included

  • SleekAI

  • SleekByte

  • SleekMotion

  • SleekPixel

  • SleekRank

  • SleekView