1

How do I get the users response from a question asked to the user and display the response in fulfillment?


Example: Google Assistant: What is your name?

User: My name is Yuri Alves

Google Assistant: Hello, Yuri Alves

Yuri Alves
  • 41
  • 1
  • 11

1 Answers1

2

Here is the simplest way to achieve this:

  • Setup an intent with the response What is your name?
  • Setup a follow-up intent, with phrases My name is Yuri Alves, I am Yuri Alves etc
  • Make an entity name_entity for recognizing the first name and last name
  • Mark the entity as required
  • Give prompt What is your name?
  • In the response print Hello, $name_entity
    entity bases approach

Hope it helps.

sid8491
  • 6,622
  • 6
  • 38
  • 64