<@1120350313208094801> this is how i am sending ye...
# general-english
c
@AiTitus :) this is how i am sending yes in vapi webhook logs I see POST request when making toolcall i.e VAPI hitting my webhook with a request ...but I am having hard time sending the payload back to vapi with its response toolcallid
Copy code
response_payload = {
                "results": [{"toolCallId": tool_call_id, "result": plain_text_names}]
            }
            logger.info(
                f"Prepared response payload for Vapi: {json.dumps(response_payload, indent=2)}"
            )

            logger.info("Sending response to Vapi server.")
            async with httpx.AsyncClient() as client:
                # Include `x-vapi-secret` header for secure communication
                response = await client.post(
                    server_url,
                    # json={"Status": 200, "Body": response_payload},
                    headers={"Content-Type": "application/json"},
                    data=response_payload,
                )
2 Views