how can i deploy using web?? The
# general-english
s
how can i deploy using web?? The workflow is working fine and all the entries are getting updated in the database when i click on Call in my workflow. But I am not able to do the same from the application which I am building, can you help me do that?
k
Use the Web SDK and call vapi.start(null, null, null, 'YOUR_WORKFLOW_ID'), this runs the workflow directly without needing an assistant, and you can handle transcripts using the message event..
s
ohk thanks, I will try this and will let u k
z
Also, if you want to specify an assisant. Just try vapi.start ("YOUR_ASSISTANT_ID", null, null, "YOUR_WORKFLOW_ID") and it will use your workflow and with the assigned assistant. Worked smoothly for me.
s
await vapi.start(process.env.NEXT_PUBLIC_VAPI_WORKFLOW_ID!, { variableValues: { full_name: fullName, user_id: user?.id, }, }); how can i add that in this?
As the above which you said is giving me error
and not getting user_id
as I want to link my plan table with users table using user_id, I am not able to do that
2 Views