Blocks Filter Feature
# support
s
Hey there VAPI team! Building out a blocks version of my booking appointments assistant, and noticing something right out of the gate. There is no filter feature? I feel like with any workflow style format (make, zapier, voiceflow, etc.) There needs to be a filter feature to branch and perform separate actions depending on particular cases. For example: I need to build a booking appointment setter to... -gather the first name, last name, and address of a caller. -To then perform a tool where it searches a customer in the clients CRM - IF FOUND: it logs customer id as it received it from a webhook response and skips conversational steps / goes to another flow - IF NOT FOUND: it logs customer id as 0, and goes to a flow to gather the customers information. Is there a workaround in the current system to implement something like this? If not, I feel like this would be a tremendous thing to add and allow blocks to take a CRAZY next step.
v
@Shmiggy Hello! I'm glad to hear about your enthusiasm for building a booking appointments assistant with VAPI. You're absolutely right that a filter feature is essential for creating efficient and dynamic workflows. While VAPI may not have a dedicated "filter" block, you can achieve similar functionality using conditional logic within your voice application. Here's how you can implement the workflow you described: 1. Gather the first name, last name, and address of the caller using input blocks. 2. Use a tool block to search for the customer in the client's CRM. 3. Based on the webhook response from the CRM search: - If the customer is found, you can use a conditional block to check for the presence of a customer ID and then log it. You can then direct the flow to the appropriate next steps or another flow. - If the customer is not found, you can set the customer ID to 0 and use another conditional block to route the caller to a flow where you gather their information. This approach allows you to create branches in your voice application flow based on the conditions you set, effectively acting as a filter. If you need any assistance in setting up these conditional blocks or have any further questions, please feel free to ask. We're here to help you make your voice application as powerful and efficient as possible!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
@Shmiggy noted will share with team.
4 Views