How to send the first function output response as ...
# support
k
I have created two function type tools in VAPI but i don't know how to send the first function type tool resposne as parameter in second function ? https://cdn.discordapp.com/attachments/1381537938013159455/1381537938218942524/image.png?ex=6847e0f8&is=68468f78&hm=c9db2bae811ee68699a4fbf529d58b247b413a84dd98e23b0665554b79ea8204&
v
To chain two function-type tools in Vapi, handle the logic in your backend: after receiving the first tool's response, extract its output and use it as a parameter for the second tool call. For example:
Copy code
python
# Pseudocode
first_result = call_tool_1(params)
second_result = call_tool_2({"input": first_result["result"]})
This way, you control the flow and can pass outputs between tools as needed. Note: Vapi does not automate this chaining—you must implement it in your server logic. [See Vapi custom tools guide](https://docs.vapi.ai/tools/custom-tools) Source: - [Custom Tools | Vapi Documentation](https://docs.vapi.ai/tools/custom-tools)
k
@Vapi Support Bot not from the code instead i am creating the assistant using the GUI feature using the prompt to handle this scenario.
v
Currently, Vapi does not natively support chaining the output of one function-type tool as the input to another using only the GUI or prompt configuration—you typically need backend logic for this ([Custom Tools Guide](https://docs.vapi.ai/tools/custom-tools)). To better assist you, could you clarify: Are you trying to achieve this chaining within a Vapi Workflow, or strictly within the Assistant's prompt configuration in the GUI? This will help determine if any available GUI features or workarounds might fit your use case. Sources: - [Custom Tools | Vapi Documentation](https://docs.vapi.ai/tools/custom-tools) - [Prompting Guide](https://docs.vapi.ai/prompting-guide) - [Workflows Documentation](https://docs.vapi.ai/workflows)
k
@Vapi Support Bot Assistant's prompt configuration in the GUI
v
Currently, you cannot chain the output of one function-type tool as the input to another using only the Assistant's prompt configuration in the Vapi GUI. This type of data passing requires backend/server logic, as the GUI and prompt system do not support referencing previous tool outputs as parameters for subsequent tool calls. If you need this functionality, you must implement it in your backend as described in the [Custom Tools Guide](https://docs.vapi.ai/tools/custom-tools). Sources: - [Custom Tools | Vapi Documentation](https://docs.vapi.ai/tools/custom-tools) - [Prompting Guide](https://docs.vapi.ai/prompting-guide)
k
Use the first function’s response as a dynamic variable in the second function’s parameters by referencing it like, {{first_function_response}} so the output of the first function passes as input to the second in Vapi..
3 Views