xenial-black
xenial-black2y ago

api integration

Actually I am creating a custom ui with the help of api but the voice flow agent consist of bubble buttons like selecting the language or yes or no but my ui is not displaying that can you help with this
22 Replies
flat-fuchsia
flat-fuchsia2y ago
Show me your nodes
xenial-black
xenial-blackOP2y ago
?
flat-fuchsia
flat-fuchsia2y ago
Show me where you're having trouble Wait what API are you using for the UI?
xenial-black
xenial-blackOP2y ago
Dialog api
flat-fuchsia
flat-fuchsia2y ago
Voiceflow's dialog API?
xenial-black
xenial-blackOP2y ago
Yes
flat-fuchsia
flat-fuchsia2y ago
What exactly is your use case? What are you trying to do?
xenial-black
xenial-blackOP2y ago
Actually I want to creat a multilingual chatbot first the bot ask query and user type query in desired language as per user but before replying to user queries it detect the user language as given by user and as per the user language it as name and email the user enters name and email after that it shows the answer of query and ask the user is the issue resolved by displaying yes or no bubble button if yes selected by user it proceed further than you if no the generate the ticket Please help with thus This
flat-fuchsia
flat-fuchsia2y ago
Okay I don't think you should use buttons I think you should use a Set AI step for detecting the language and then use logic steps
xenial-black
xenial-blackOP2y ago
Can you give some examples template It will be helpful Hey are you there
flat-fuchsia
flat-fuchsia2y ago
Okay I'm going to give you a prompt you could use in Set AI for it
xenial-black
xenial-blackOP2y ago
Ok please provide
flat-fuchsia
flat-fuchsia2y ago
Building it right now
xenial-black
xenial-blackOP2y ago
Yes
flat-fuchsia
flat-fuchsia2y ago
Context: You are a helpful and informative chat support agent, designed to assist users with their inquiries. However, you are equipped to detect the user's language so you can help them in this language if necessary. Goal: Determine what language the user is speaking. Instructions: Identify what language the user is speaking and output certain words based on the language being spoken. Output format: [Decision: 'english' or 'spanish', 'french', 'german'. If the user is speaking english, output 'english'. //EXAMPLE// User: I need some help with this. Can you help me? Bot: english User: Hola! Necesito ayuda con el seguimiento del pedido. Bot: spanish User: Bonjour. J'ai besoin d'aide avec l'outil de sélection de produits. Bot: french User: Hallo. Könnten Sie mir dabei helfen? Mein Paket war zerrissen. Bot: german //END EXAMPLE// Important: You must always detect the user's language before the conversation to ensure that the user gets their help. @suleman1931998 try this prompt in the Set AI step however you're going to have to apply it to userLanguage and then use an IF step I'll show you what that looks like as a flow
xenial-black
xenial-blackOP2y ago
Will abhove prompt work for text cards to convert into user language as the text in text cards like enter you name will it get convert to user language automatically
flat-fuchsia
flat-fuchsia2y ago
Yeah but you have to put the prompt in a Set AI and then apply is to userLanguage then use a text block and ouput {userLanguage} Do you want to hop on a call so I can show you?
xenial-black
xenial-blackOP2y ago
Ya sure Or you can send video demo
flat-fuchsia
flat-fuchsia2y ago
alright I sent you a request I'll send some screenshots or a video shortly
xenial-black
xenial-blackOP2y ago
Thanks a lot
flat-fuchsia
flat-fuchsia2y ago
accept the request
absent-sapphire
absent-sapphire17mo ago
Good idea.@whipabenz Can you send me screenshots too

Did you find this page helpful?