Dialogflow Advanced Order Bot 02 - Using Custom Entities to Configure a Product

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 18

  • @deepakmadan2071
    @deepakmadan2071 4 ปีที่แล้ว +1

    Hi Peter , I just wanted to give you a big thumbs up for the video . i was really stuck somewhere for 2 days before i figure out your channel and video there.

  • @morrisshi
    @morrisshi 4 ปีที่แล้ว

    hey peter thanx for the video. do u have any idea if we are able to pass multiple parameters by triggering and intent without someone inputting values for those parameters

  • @phsa_
    @phsa_ 5 ปีที่แล้ว +1

    A feeling that I have is the intent pattern naming should consider first the action and then the data.
    You said that could take suggestions on this in one of your videos.
    Intents are basically a kind of action, speech action, from the user, so I think would more appropriate start name from that.
    Example given, order.pizza, confirm.order

    • @peterfessel9910
      @peterfessel9910  5 ปีที่แล้ว +1

      That's a valid point, you could do it like that as well. Can you put into words where you see the advantage of that approach? I like to start with the data first, so that I have all intents focusing on putting together a pizza together in the list because they all start with 'item' and then all intents related to getting order data and finishing an order together because they start with 'order'. It might depend on the use case as well. I find it works well for this bot.

    • @phsa_
      @phsa_ 5 ปีที่แล้ว

      @@peterfessel9910, yep, I agree that the approach may vary as needed. It is similar to package organization in development, it varies according to the desired architecture.
      In your case, it gathers intents by 'feature', a common organization in Angular for example. The suggested approach works like other arrangements, by type of action/service executed/offered, as Java programming.
      I think that's a good justification. Thanks for responding.

  • @taniach3992
    @taniach3992 4 ปีที่แล้ว

    Hi Peter,

    Is it a good practice to train your bot on phrases such as "two please" or "large size" that don't have context by themselves?

    • @peterfessel9910
      @peterfessel9910  4 ปีที่แล้ว

      Hi Tania, you could try. But do you think that your users would be likely to start a conversation like this without first giving context of what they want to order? I would try to balance adding complexity to your bot with how likely this is to be a use case.

  • @daviddiaz6262
    @daviddiaz6262 4 ปีที่แล้ว

    Great content Peter, It helps me a lot. I have the same issue of last comment (several items in same chat) to be more precise 4 items and each one of these with different setups in sizes, flavors and types. How may I handle this kind of orders? Some clients even send a whole order with many items and setups in just one message. Any advice would be great and if you have a patreon or btc address I'm willing to donate for all your time and help

    • @peterfessel9910
      @peterfessel9910  4 ปีที่แล้ว

      Hi @david, that is very tricky and to my knowledge not something that Dialogflow can currently support. The way I've handled it is to recognize whenever the customer orders more than one item per message and give an output like "please only one order per message". It will lead to user frustration, but at least the bot will be able to correctly take the order.

    • @peterfessel9910
      @peterfessel9910  4 ปีที่แล้ว +1

      You can see how I implemented this in my order bot template: gumroad.com/products/ZGCcs

    • @daviddiaz6262
      @daviddiaz6262 4 ปีที่แล้ว

      Thanks I bought and saw that option I'm taking a different approach with fulfilments, if I make progress to take the whole order in a single intend I'll post it here

  • @deepakmadan2071
    @deepakmadan2071 4 ปีที่แล้ว

    I got 2 scenarios :-
    1)Suppose your customer has completed ordering pizza , first you send him confirm order message that your order id is 12345 then lets say after 10 seconds you send him a message saying thankyou for using our service.
    is this thing possible ? firing another intent without user input?
    2)Suppose customer orders pizza and chat bot has left the chat and same customer within a minutes comes back and says hey i want to buy another pizza .can chat bot give him suggestion that would you like to repeat your last pizza ? is there a way to store ordered pizza details for just 1 minute after that it should be normal flow?
    is this scenario possible in chatbot?

    • @peterfessel9910
      @peterfessel9910  4 ปีที่แล้ว +1

      Hi Deepak,
      1) I don't think this is possible by default in Dialogflow. You might be able to mock it using some custom code
      2) That should be possible without problems. You can still access the information saved in your contexts after 1 minute

    • @deepakmadan2071
      @deepakmadan2071 4 ปีที่แล้ว

      @@peterfessel9910 Thanks Peter for replying. :)

  • @DiogoROSilva
    @DiogoROSilva 4 ปีที่แล้ว

    Hello, I love your videos, helped me a lot, thank you. Question, is it possible to lock a intent to a entity value? Lets assume that you also sell pastas, and you would like to make a order, would you create a entity with pasta and pizza? Or would you duplicate all the intents to pasta? My main concern is the synonyms, it would be nice to have a entity with synonyms to pizza and pasta, and then use it in the intent. But I can't just make a intent order with @order-type, because pizza and pasta have different characteristics. How would you handle "Order a pizza margarita" "Order a pizza" "Order a pasta" and worst "make a order". Who can I have "make a order" ask, what kind of order, and from that select if I process the intents from order.pizza, or order.pasta?
    Thank You

    • @peterfessel9910
      @peterfessel9910  4 ปีที่แล้ว +1

      Hi Diogo, I think both are valid options. If ordering pasta has a different format, for example because you can choose the base pasta and the sauce and while in pizza you choose the type and the size, then it probably makes sense to create separate intents for the pasta. I get your problem though. Once you offer more than just pizza and pasta you end up with a lot of intents which may be messy and lead to errors. In that case, maybe you have to implement some custom logic in a webhook.

  • @bhavindedhia3976
    @bhavindedhia3976 4 ปีที่แล้ว

    Hi Peter how can I add cutom UI to dailogflow . Thanks