capabilities.work

Natural Language Tool Execution

A 3-step recipe with Composio. We can help you get access.

Recipe · 3 steps

Natural Language Tool Execution

Generate tool inputs from text and execute the tool for a user.

  1. Fetch the tool definition so its input parameters are available to ground the natural-language argument generation.
  2. Ask Composio to translate the user's instruction into a structured argument map matching the tool's input parameters.
  3. Execute the tool using the generated argument map on behalf of the user and the optional connected account.
What you'll need to have ready
  • apiKey: Composio project API key sent in the x-api-key header.
  • toolSlug: The slug of the tool to run (e.g. "GMAIL_SEND_EMAIL").
  • text: The natural-language instruction describing what to do.
  • userId: The end-user identifier the tool runs on behalf of.
  • connectedAccountId: Optional connected account id used to authorize the execution.
For your developer

Arazzo workflow composio:natural-language-tool-execution, 3 operations: getToolsByToolSlug → postToolsExecuteByToolSlugInput → postToolsExecuteByToolSlug. Specs on APIs.io.