Skip to main content

Service Elements Usage Scenarios

Where Service Functions Are Used

Developers can call service functions in all places where function logic can be written, including page functions, page events, frontend component event functions, task functions, model events, approval events, custom events, AI assistant events, AI Agent tool call events, and other service functions.

Service functions can also be called by large language models as AI Agent tools, invoked in AI assistant function call nodes, and exposed to third parties through API authorization elements.

Helping AI Understand Service Functions More Accurately

Each service function has a function declaration in the service element's e.json file, which is a function definition within the functionList. The functionList enables functions to be recognized by the IDE visual editor for visual logic orchestration support, allows functions to be called normally, and enables functions to be understood and used by AI.

Complete and accurate function names, input and output parameter names, and function descriptions enable AI to understand function capabilities and usage more accurately, thereby calling service functions more precisely.

Service Element Definition File

With the help of the visual editor, developers can conveniently fill in function names, define input and output parameters, and function descriptions. The functionList is automatically generated into the service element's e.json file.

tip

In the JAAP specification, any element including service elements can define their own functionList.