# 联网能力配置说明

### 同步我们最新的代码

参考文档「如何与上游代码保持同步跟新」同步我们最新的代码 或者 参考文档「部署教程」重新走流程部署我们的最新项目代码

### 配置环境变量（for 联网能力）

#### 1、找到项目中的「setting」-「Environment Variables」，添加两个新的环境变量

![](/files/Qwcll087eCVlNAIXDQYM)

#### 2、第一个环境变量：在key的位置填入`NEXT_PUBLIC_WEB_SEARCH_ENABLED` 在 value 的位置填入`true`

![](/files/Z1WDgi4w9eu19SrgEe0V)

![](/files/quRvTlJPVX1eQjsd9AL1)

#### 3、第二个环境变量：在key的位置填入`SERP_API_KEY`  value的值需要获取一下再填入

登录注册这个网站 <https://serper.dev/playground>，获取API KEY，这个网站是用来调用互联网搜索的，比如谷歌，百度等，将API Key 填入上述 value 的位置

![](/files/bsKBeBGu1oAIT74LYh6K)

#### 4、填写完毕之后，回到Vercel网站，找到对应的项目，点击进入，并找到如图示的按钮，点击进入

![](/files/jRahj9n0qQcoSAM8GBsJ)

#### 5、点击visit左边的三个点，找到redeploy按钮，并点击

![](/files/F8GXUgwr3gR9AYxvuh8G)

#### 以上就部署完毕啦，这时候就可以体验联网能力拉，需要纸的是，联网能力很费钱，上述注册的API免费额度是1000，单个问题消耗在5-15之间，最多也就能问200个问题

![](/files/Zb6EfiJrIIJMjTTzksXl)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://autogpt-next-web.gitbook.io/autogpt-next-web/lian-wang-neng-li-pei-zhi-shuo-ming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
