ultramsg / csharp-whatsapp-chatbot

Make WhatsApp Chatbot and use WhatsApp API to send the WhatsApp messages in c# .
https://ultramsg.com
85 stars 52 forks source link

Level-bases input from user #2

Open techiehkr opened 1 year ago

techiehkr commented 1 year ago

I need to write code in C# , to make whatsapp chatbot, Where the bot gives multiple options at different levels. After receiving input option at the first level, I want the bot to take second input for my second level where a different set of options are available. I am only able to do it for first lefel of input. Please help me regarding taking further inputus from the user for various levels.

ultramsg commented 1 year ago

Hi, 

Unfortunately, I do not have an example, so it needs logic and writing additional codes But you can use our chatbot and create it without coding

  You can use the new version boot chat from Ultramsg ,The Ultramsg WhatsApp Chatbot is a visual workflow builder used to automate processes for sending & receiving messages You can get started and read this article :  https://blog.ultramsg.com/how-to-build-a-whatsapp-chatbot-using-ultram/ https://blog.ultramsg.com/how-to-build-a-whatsapp-chatbot-using-ultram/

  -----Original message----- From: techie Sent: Monday, July 24 2023, 11:24 am To: ultramsg/csharp-whatsapp-chatbot Cc: Subscribed Subject: [ultramsg/csharp-whatsapp-chatbot] Level-bases input from user (Issue #2)     I need to write code in C# , to make whatsapp chatbot, Where the bot gives multiple options at different levels. After receiving input option at the first level, I want the bot to take second input for my second level where a different set of options are available. I am only able to do it for first lefel of input. Please help me regarding taking further inputus from the user for various levels.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

techiehkr commented 1 year ago

hi check this image here i want this message should be go nested but its not going inside the if kindly check it.

user- hi bot- hi 1.text

  1. image
  2. etc
  3. etc user-1 bot - 1.test1 2.test2 3.test3 user -1 now it should go inside test1 and replay test 1 but its goint main menu which and return same 1.test1 2.test2 3.test3

i can do this if id (message) is variable, but its parameter in onChat function. is it any way to solve this? note: I have tried boot chat from Ultramsg but for flex my app i need to do in code issue_git MicrosoftTeams-image