How can I start a workflow within my own frontend?
# support
a
How to start a workflow without any callUrl to daily? I want it in my own frontend
v
You can start a Vapi assistant conversation directly in your frontend using the Vapi Web SDK, without needing a callUrl or external telephony provider. For example:
Copy code
javascript
import Vapi from "@vapi-ai/web";
const vapi = new Vapi({ apiKey: "YOUR_API_KEY" });
vapi.start(assistantOptions);
This runs the conversation in your web app ([docs](https://docs.vapi.ai/documentation/get-started/make-a-web-call)). Clarifying question: Are you looking to trigger a specific workflow (built in the Vapi workflow builder) from your frontend, or do you just want to start a general assistant conversation in the browser? Source: - [Make a web call (Vapi documentation)](https://docs.vapi.ai/documentation/get-started/make-a-web-call)
a
not working...
t
i know how to fix it
dm me if you want
k
Hey Adrian! You just need to pass workflow ID as 4th parameter to Vapi web SDK initialisation code, or transient workflow as 5th parameter, and the first 3 parameters as NULL. It's all because of how parameters are currently being passed to the SDK, but I will do the rework and make it easier as an object type.