adrian
adrian4mo ago

How can I start a workflow within my own frontend?

How to start a workflow without any callUrl to daily? I want it in my own frontend
3 Replies
Vapi Support Bot
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, changelog). Quick example:
import Vapi from '@vapi-ai/web';
const vapi = new Vapi('YOUR_PUBLIC_API_KEY');
vapi.start({ workflowId: 'YOUR_WORKFLOW_ID' });
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 - Vapi Workflows Documentation - Vapi Changelog May 6, 2025
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
adrian
adrianOP4mo ago
not working...
Kyle Brunker
Kyle Brunker4mo ago
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.

Did you find this page helpful?