aware-green
aware-green4mo ago

How to gather data using worfklows and how to connect an assistant to a workfloww

Hi, I was following a tutorial and the guy in the video used "SAY" and "GATHER" nodes to give an exact intro and gather some user input. I can only see "CONVERSATION" nodes and I'm not sure how to achieve the same. Also I can't find the option to connect my assistant to this workflow
10 Replies
Vapi Support Bot
To gather user input in a Vapi workflow, add a Say node to prompt the user, followed by a Gather node to collect their response. For example:
1. Say: "Hi! What's your name?"
2. Gather: { name: "userName", description: "The user's name", dataType: "string", required: true }
1. Say: "Hi! What's your name?"
2. Gather: { name: "userName", description: "The user's name", dataType: "string", required: true }
Make sure to connect the nodes in the workflow builder. This setup will prompt the user and capture their input for later use in your workflow.
Tip: The Gather node analyzes conversation history and asks follow-up questions if the user's response isn't clear, but it doesn't prompt by itself—always precede it with a Say node.
See more in the official docs. Sources: - Vapi Docs: Gather Node - Vapi Docs: Say Node
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
aware-green
aware-greenOP4mo ago
The Workflow UI has no Say or Gather nodes anymore
Sahil
Sahil4mo ago
We have replaced it with conversational node.
aware-green
aware-greenOP4mo ago
I know, but how can I achieve the same output of using exact text in SAY and gather question info with Conversation? There is no info in the docs (just for the API case), and I can't see the option to connect the assistant to the workflow either
Sahil
Sahil4mo ago
You would just write a general prompt. Something along the lines of "Ask what the user's favorite color is. After that information is collected, store the data in {{favorite_color}}" which can be defined in the 'extract variables' section of the conversation node.
aware-green
aware-greenOP4mo ago
Nice, and how do I connect the assistant to the workflow? I connected the assistant via API but it does not follow the workflow I created
Sahil
Sahil4mo ago
For the time being, single-prompt assistants and workflows are seperate entities
aware-green
aware-greenOP4mo ago
Then how do I connect my code to a workflow using vapi ui? I thought assistants (which is the key I have in my env) connected to workflows. If I create a workflow how do I connect it to my code so the voice follows the workflow (without using the API)?
Vapi Support Bot
Currently, to have your code follow a workflow (and not just a single-prompt assistant), you must trigger calls using the workflow's identifier, not the assistant's key. In the Vapi UI, build your workflow using "conversation" nodes, then reference the workflow ID when initiating calls—this ensures the call follows your designed workflow logic. Workflows and assistants are managed as separate entities, so referencing the workflow is required for workflow-based flows.
For more details, see the Vapi Workflows documentation. Source: - Vapi Workflows Documentation
Sahil
Sahil4mo ago
^^

Did you find this page helpful?