other-emerald•2y ago
Hi guys i need help in voice flow for custom data type
Hi guys i need help in voice flow for custom data type i am not able to understand that. I am developing a mini chatbot for inventory management where in i require to enter item code now item code value can be anything but in my capture node i select create new entity and select data type as custom it asks for values to be entered so i gave couple if values and i saved. When i test the bot to display the entered item code it doesn't display like lets say i enter item code as I100 when i display the output through text node it displays only I ignores 100. Also in custom data type we have options of creating variations which are from voice flow if i print those suggested values it displays correctly so what i want is that i enter any value and it should display correctly. in botpress its pretty straight forward we just select type as string and enter any value but in voice flow i don't understand so kindly help with that.
1 Reply
It sounds like you're encountering issues with custom data types in Voiceflow, particularly when capturing and displaying item codes in your inventory management chatbot. When you create a new entity and select a custom data type, you're prompted to enter possible values. However, for capturing any value like an item code (e.g., I100), you might be facing challenges because the custom entity is not recognizing or displaying the values as expected.
Here are some key points to consider:
- Custom entities allow you to define data specific to your use case, but they require you to specify possible values or variations. If the exact value entered by the user isn't listed, it might not be captured correctly.
- System-defined entities are pre-defined in Voiceflow and might not suit your need for capturing any string of text like an item code.
- To capture and use any value entered by the user, ensure you're using the capture step correctly. The capture step should store the user's entire reply in a variable, which you can then display using a text node.
- If you're looking to capture a wide range of inputs without pre-defining each possible value, consider how you're structuring your capture step and the variable used to store this input.
For more detailed guidance on working with custom entities and the capture step, you might find the following resources helpful:
- Creating and Editing Entities
- Capture Step in Voiceflow