The `chat-conversational-react-description` agent type lets us create a conversational agent using a chat model instead of an LLM.

```python
from langchain.memory import ConversationBufferMemory
from langchain.chat_models import ChatOpenAI

memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
llm = ChatOpenAI(openai_api_key=OPENAI_API_KEY, temperature=0)
agent_chain = initialize_agent(tools, llm, agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, memory=memory)
```


```python
agent_chain.run(input="hi, i am bob")
```

<CodeOutputBlock lang="python">

```
    > Entering new AgentExecutor chain...
    {
        "action": "Final Answer",
        "action_input": "Hello Bob! How can I assist you today?"
    }
    
    > Finished chain.


    'Hello Bob! How can I assist you today?'
```

</CodeOutputBlock>


```python
agent_chain.run(input="what's my name?")
```

<CodeOutputBlock lang="python">

```
    > Entering new AgentExecutor chain...
    {
        "action": "Final Answer",
        "action_input": "Your name is Bob."
    }
    
    > Finished chain.


    'Your name is Bob.'
```

</CodeOutputBlock>


```python
agent_chain.run("what are some good dinners to make this week, if i like thai food?")
```

<CodeOutputBlock lang="python">

```
    > Entering new AgentExecutor chain...
    {
        "action": "Current Search",
        "action_input": "Thai food dinner recipes"
    }
    Observation: 64 easy Thai recipes for any night of the week · Thai curry noodle soup · Thai yellow cauliflower, snake bean and tofu curry · Thai-spiced chicken hand pies · Thai ...
    Thought:{
        "action": "Final Answer",
        "action_input": "Here are some Thai food dinner recipes you can try this week: Thai curry noodle soup, Thai yellow cauliflower, snake bean and tofu curry, Thai-spiced chicken hand pies, and many more. You can find the full list of recipes at the source I found earlier."
    }
    
    > Finished chain.


    'Here are some Thai food dinner recipes you can try this week: Thai curry noodle soup, Thai yellow cauliflower, snake bean and tofu curry, Thai-spiced chicken hand pies, and many more. You can find the full list of recipes at the source I found earlier.'
```

</CodeOutputBlock>


```python
agent_chain.run(input="tell me the last letter in my name, and also tell me who won the world cup in 1978?")
```

<CodeOutputBlock lang="python">

```
    > Entering new AgentExecutor chain...
    {
        "action": "Final Answer",
        "action_input": "The last letter in your name is 'b'. Argentina won the World Cup in 1978."
    }
    
    > Finished chain.


    "The last letter in your name is 'b'. Argentina won the World Cup in 1978."
```

</CodeOutputBlock>


```python
agent_chain.run(input="whats the weather like in pomfret?")
```

<CodeOutputBlock lang="python">

```
    > Entering new AgentExecutor chain...
    {
        "action": "Current Search",
        "action_input": "weather in pomfret"
    }
    Observation: Cloudy with showers. Low around 55F. Winds S at 5 to 10 mph. Chance of rain 60%. Humidity76%.
    Thought:{
        "action": "Final Answer",
        "action_input": "Cloudy with showers. Low around 55F. Winds S at 5 to 10 mph. Chance of rain 60%. Humidity76%."
    }
    
    > Finished chain.


    'Cloudy with showers. Low around 55F. Winds S at 5 to 10 mph. Chance of rain 60%. Humidity76%.'
```

</CodeOutputBlock>
