# NatBotChain

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chains/natbot/base/NatBotChain)

Implement an LLM driven browser.

**Security Note**: This toolkit provides code to control a web-browser.

    The web-browser can be used to navigate to:

    - Any URL (including any internal network URLs)
    - And local files

    Exercise care if exposing this chain to end-users. Control who is able to
    access and use this chain, and isolate the network access of the server
    that hosts this chain.

    See https://docs.langchain.com/oss/python/security-policy for more information.

## Signature

```python
NatBotChain()
```

## Description

**Example:**

```python
from langchain_classic.chains import NatBotChain

natbot = NatBotChain.from_default("Buy me a new hat.")
```

## Extends

- `Chain`

## Properties

- `llm_chain`
- `objective`
- `llm`
- `input_url_key`
- `input_browser_content_key`
- `previous_command`
- `output_key`
- `model_config`
- `input_keys`
- `output_keys`

## Methods

- [`from_default()`](https://reference.langchain.com/python/langchain-classic/chains/natbot/base/NatBotChain/from_default)
- [`from_llm()`](https://reference.langchain.com/python/langchain-classic/chains/natbot/base/NatBotChain/from_llm)
- [`execute()`](https://reference.langchain.com/python/langchain-classic/chains/natbot/base/NatBotChain/execute)

## ⚠️ Deprecated

Deprecated since version 0.2.13.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/langchain/langchain_classic/chains/natbot/base.py#L19)