Skip to content

Function Calling

Function Calling is a feature that allows you to call external APIs from your Voker deployments.

  1. Start by creating a new function.
    • Specify the API Endpoint
      • Enter the full URL of the API
      • Choose the correct HTTP method (GET, POST)
    • Define the inputs
      • Define all required inputs for the API, including
        • Query parameters
        • Headers
        • Body
      • For each input, specify:
        • Name
        • Input type (static, input, function parameter)
          • For any input marked as a function parameter, be sure to add a clear description — this is what the LLM sees when deciding how to fill in values.
          • If it’s a body field, also specify the type (e.g., text, whole number, etc.)
Function calling config Function calling config
  1. Run a Test Execute to validate the function.
    • Make sure the LLM is collecting the correct information from the conversation (e.g., query parameters, headers, or body fields) needed to make the API call.
    • Note: This works alongside other functions such as Internet Search.
Function calling in action Function calling in action
  1. Verify that the function is called successfully.
    • Once the function is triggered, a collapsed section will appear in the chat showing the function call details.
    • In the input section, you should see the function name and all provided inputs.
    • In the output section, you should see the API response.
Function calling conversation Function calling conversation