Function Tool Settings
The function tool settings define how the Dynamic Table plugin presents itself to the AI. When a user sends a message, the AI reads the function tool definition to understand what tables are available, what they contain, and when to query them.
Navigate to Actions → Plugins → Dynamic Table → Function Tool in the agent sidebar.
What Is the Function Tool
The function tool is the interface contract between the plugin and the AI model. It describes the plugin as a callable function with a name, a description, and a list of available tables as parameters. The AI uses this description to decide whether and how to invoke the plugin for a given user query.
A well-configured function tool improves search accuracy by giving the AI clear context about what each table holds and how to use it.
Function Tool Fields
| Field | Description |
|---|---|
| Name | A short identifier for the plugin function, visible to the AI. Use a descriptive name with no spaces, e.g. search_product_catalog. |
| Description | Explains what this plugin does and when the AI should use it. This is the most important field for query routing. |
| Loading Text | A short message shown to the user while the plugin is running, e.g. Searching product catalog.... |
| Rules | Additional constraints or instructions for the AI when using this plugin. |
| Response Prompt | A prompt appended after search results to guide how the AI formats or interprets the response. |
Writing a Good Description
The description tells the AI when to invoke the plugin and what kind of data it can retrieve. A vague description leads to missed queries or incorrect table selection.
| Poor description | Good description |
|---|---|
Search the table. | Search the employee directory to find staff by name, department, role, or location. Use this when users ask about people, teams, or organization structure. |
Product data. | Look up products by name, SKU, category, or availability status. Use this when users ask about product specifications, pricing, or stock levels. |
Rules
Use the Rules field to set hard constraints the AI must follow when using this plugin. Rules are injected into the AI prompt alongside the search results.
Example rules:
Only return rows where status is Active.If no results are found, tell the user to contact the helpdesk.Always show the full product name and price in your response.Do not speculate about data that is not in the results.
Response Prompt
The Response Prompt is appended after the raw search results are returned to the AI. Use it to shape how the AI presents results to the user.
Example response prompts:
Format the results as a numbered list with the name and phone number for each row.If multiple results are found, ask the user to clarify which one they meant.Present the result in a conversational tone, summarizing the key fields.
Per-Table Labels
Each active table in the plugin has its own label inside the function tool definition. The label is derived from the table's Name and Description fields set when creating the table.
The AI uses the table name and description to decide which table to query when the plugin has multiple tables. Make each table description specific to the data it contains.
Example with two tables:
| Table | Name | Description |
|---|---|---|
| Employee directory | employee_directory | Staff records including name, department, role, and office location. |
| Office locations | office_locations | List of company office addresses, floors, and contact numbers. |
With these descriptions, a query like "Where is the KL office?" will route to office_locations, while "Who is the HR manager?" will route to employee_directory.
Saving and Publishing
Changes to function tool settings take effect immediately when saved. However, if the agent is already deployed, the updated function tool definition will only be picked up by new conversations. Active sessions retain the previous definition.
After saving, use the test search panel to confirm that search queries return the expected results under the updated configuration.
Related Pages
- Create a Table — set the table name and description used in the function tool.
- Test Search — verify that the AI selects and queries tables correctly.
- Dynamic Table Overview