Question: I want to get only filtered tweet but i got this error. How can i solve it? What is the meaning of this error?

```
tweets = api.user_timeline(screen_name = "elonmusk", count = 200000, lang = "en", tweet_mode = "extended")

word="Dogecoin"
for tweet in tweets:
    if word in tweet:
        df = pd.DataFrame([tweet.full_text], columns = ["tweet"])

```

TypeError: argument of type 'Status' is not iterable

Answer: 
I recommend you to save the information in a context. then you can retrieve the data on whatever intent that is in the same context.
To add on to the answer of @MizarConstanti, you can use the following for your entities:

* For date you can use entity `@sys.date`
* For first name `@sys.given-name`
* For last name `@sys.last-name`

NOTE: For given name and last name entities, these entities could only recognize the common names ([reference](https://cloud.google.com/dialogflow/es/docs/reference/system-entities)).

An alternative for getting dates and names is you can create training phrases in this manner and extract the information using the defined entities.

**Intent-> test intent**

[![enter image description here](https://i.stack.imgur.com/sfJHR.png)](https://i.stack.imgur.com/sfJHR.png)

[![enter image description here](https://i.stack.imgur.com/eg3tW.png)](https://i.stack.imgur.com/eg3tW.png)

**Intent -> getName**
[![enter image description here](https://i.stack.imgur.com/tl1X8.png)](https://i.stack.imgur.com/tl1X8.png)
[![enter image description here](https://i.stack.imgur.com/4aALf.png)](https://i.stack.imgur.com/4aALf.png)

If you are using library `dialogflow-fulfillment` in Dialogflow inline editor these entities could be called using this code:

```
'use strict';

const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
const axios = require('axios'); 

process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements

exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => {
  const agent = new WebhookClient({ request, response });

function yourFunctionHandler(agent) {
    // initial value of agent.parameters.date is 1994-07-29T12:00:00+08:00
    // thus the splitting done below
    const date = agent.parameters.date.split('T')[0];
    const year = agent.parameters.date.split('-')[0];
    const month = agent.parameters.date.split('-')[1];
    const day = agent.parameters.date.split('-')[2].split('T')[0];
    agent.add(`year: ${year}, month:${month}, day:${day}`);
  }

function getName(agent) {
    const lastName = agent.parameters.lastName;
    const firstName= agent.parameters.givenName;
    agent.add(`first: ${firstName}, last: ${lastName}`);
}  

  // Run the proper function handler based on the matched Dialogflow intent name
  let intentMap = new Map();
  intentMap.set('test intent', yourFunctionHandler);
  intentMap.set('getName', getName);
  agent.handleRequest(intentMap);
});

```

Test for date and name intent:
[![enter image description here](https://i.stack.imgur.com/Ew0P0.png)](https://i.stack.imgur.com/Ew0P0.png)