Agent UI - Knowledge Base

Agent UI - Knowledge Base

API & Database

How to Share or Reuse Business Logic Across Apps (Shared Functions)

Discover how to connect your applications and reuse logic or data across your ecosystem. This feature allows you to export KPIs, functions, and database access from one app to another, creating a unified ecosystem where your data flows seamlessly. Let’s look at the steps:

Last updated on 03 Apr, 2026

Step 1: Enable Function API

To start, open the application that contains the logic or data you want to share. Navigate to the "Settings" section and activate the "Enable Function API" feature.

chrome_oA2Fu4lNak.png

Step 2: Request an API Function

Use the Chat to ask the AI to create an API function. For instance, you can type: "Create an API function that returns the KPIs." in the chat.

chrome_tjJoK5UCWG.png

Step 3: Wait for AI to Program the Logic

The AI will process your instruction and automatically write the necessary code for the API. This function will encapsulate the business logic so it can be carried over to other projects.

chrome_eImSC4bwuN.png

Step 4: Switch to the Target Project

Navigate to the main menu and select the project or application where you want to implement the shared information.

chrome_dmvyzhUr9q.png

Step 5: Link Shared Functions

In the target app, type @ to find the "Shared Functions" section. From the list, select the source application that contains the function you created. Now, in the "Function Sharing" (In the Dashboard) you can see the shared function.

chrome_G3c0jpqO77.png

Step 6: Instruct the AI to Use the Function

Tell the AI to use the newly linked function and display the information. The AI will call the API from the other application to retrieve the data. You can tell the AI that it creates a home page to view the data shared by the API.

chrome_O22ruZCkQh.png

Step 7: Refine Data Visibility

If the information does not appear correctly at first, explain the issue to the AI. It will analyze the API's data structure and adjust the call to ensure the results are displayed properly.

C7zsYnd8kK.png

Was this page helpful?
Previous

Why Am I Seeing "Too Many Requests"?

Next

AgentUI