Skip to main content

Invoke Custom Service as an AI Tool

Add a published Custom Service to an AI Agent or Copilot, map its inputs and outputs, and test how the tool runs.

Add a published Custom Service to an AI Agent or Copilot so it can run that service and use selected results. In this example, Sub List to HTML Table accepts list data and returns a formatted table.

Choose a service

  1. Publish the Custom Service and test it on its own. Confirm it belongs to the current application or is shared with it. Create and manage Custom Services

  2. Open the agent or Copilot. Under Tools, select Add a tool → Invoke custom service.

  3. Select the service, give the tool a clear name, and choose Add and configure.

The Tool section shows its type and the selected service. Use the open icon beside the service to review it in application settings.

Yeeflow AI tool settings showing Invoke custom service and the selected Sub List to HTML Table service.

Describe the tool and map inputs

Describe what the service does and when the assistant should call it. For this example, say that it formats list rows as an HTML table.

The tool inherits the service’s input variables. For each input, choose the available filling method. Use Dynamically fill with AI for data the assistant should infer from the request or context. Use a custom value when the input is fixed. Configure how tool inputs are filled

Choose completion and outputs

Under Completion, choose Waiting for response when the assistant needs to use the result. For a tool that can run without returning a result to the assistant, the menu also offers Do not response.

Select Add output and choose which of the service’s outputs the assistant or later tools can use. In this example, select htmlTable.

Test and publish

  1. Use Test run with sample list rows. Check that the assistant selects the tool, passes the expected input, and receives the table output.

  2. Test missing input and an account that should have limited access. If the service returns an error, test the service separately and check the tool’s inputs and outputs.

  3. When the checks pass, enable the tool, save the configuration, and publish the agent or Copilot.

If the service is missing, check that it is published, shared with the application when required, and available to the editor. If the assistant never calls it, review its description and whether it is enabled.

Related guides

Did this answer your question?