title: What should we do to dynamically get a name entered in dialogflow and to get that stored in firestore?
body: <pre><code>if(action === 'save.name' || inputContexts == 'welcome'){
  
    admin.firestore().collection('users').where('name', '==', Name).limit(1).get()
              .then(snapshot =&gt; {
                  let user = snapshot.docs[0]
                  if (!user) {
  
                      admin.firestore().collection('users').add({
                          name: Name
                      }).then(ref =&gt; {
                         console.log('Added new user');
                      });
                  } else {
                      console.log('User already exists');
                  }
              });
      } 
  </code></pre>
  
  <p>I have a module of code for storing details in the firestore database which collects data from dialogflow bot, I don't know to how to refer that parameter("Name")entered in dialogflow? please help me out!</p>
  
  <p>I tried--->>let name = app.getUser().Name;</p>
  
  <p>but it doesn't work to get that name entered in dialogflow bot!</p>
  
  <p>I am using api v1!</p>