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 workflow directly in your frontend using the Vapi Web SDK by calling
.start({ workflowId: 'YOUR_WORKFLOW_ID' })
, without needing a callUrl to Daily.
This launches the workflow in your web app ([docs](https://docs.vapi.ai/sdk/web), [changelog](https://docs.vapi.ai/changelog/2025/5/6)). Quick example:
Copy code
js
import Vapi from '@vapi-ai/web';
const vapi = new Vapi('YOUR_PUBLIC_API_KEY');
vapi.start({ workflowId: 'YOUR_WORKFLOW_ID' });
Could you clarify if you want to trigger the workflow with custom user data or just start the default workflow flow? Sources: - [Vapi Web SDK Documentation](https://docs.vapi.ai/sdk/web) - [Vapi Workflows Documentation](https://docs.vapi.ai/workflows) - [Vapi Changelog May 6, 2025](https://docs.vapi.ai/changelog/2025/5/6)
a
not working...
s
Hey Adrian, as of now, you have to pass workflow ID or as a fourth parameter, or transient workflow as a fifth parameter to VAPI web SDK. Once you initiate the start method, you will get the daily call URL as well.
6 Views