Hey All , I am trying to call a workflow created i...
# office-hours
s
Hey All , I am trying to call a workflow created in dashbaord with id from Web sdk as follows , but always getting invalid assistanid error, Is there any alternate way to do this ? thanks,
Copy code
import Vapi from "@vapi-ai/web";
const vapi = new Vapi(vapi_APIKEY);
try {
    const workflowOverrides = {
      variableValues: {
        name,
        topics,
        userWellnessProfile,
      },
    };
    return await vapi.start(workflowId, workflowOverrides);
  } catch (err) {
    console.log(err);
  }
3 Views