Unable to use workflow in Code
# support
k
It gives error Couldn't get Assistant, in payload workflow id is going in assistant object by default Do i have to link workflow with assitant to use it?
t
I have the same issue
c
Just assign the phone number to either the assistant or the workflow, depending on your use case, and the "Couldn't get Assistant" error usually means the number is pointing to a workflow, not an assistant..
k
I am not using any phone number
k
Make sure your payload includes a valid assistantId..
c
Hey, In case you are using web SDK, you need to pass workflow id as an fourth parameter. The first 3 parameters are assistant id, transient assistant, squad. So the first three parameters require to be set to be null, and the fourth one to be workflow id, and then it will work for you. If it is something else, let me know how you are currently trying to use workflows.
2 Views