# 案例一

## 一.效果展示

### 1.原理说明

AI有一个局限性，就是AI的知识不是实时联网的，假设AI的训练数据到2024年6月份，那么2024年7月之后的事情，AI是不知道的；

为了让AI能知道后面的时候，我们通过能用AI工作流逻辑编排功能，给AI加一个联网查询节点，让AI能够实时获取网络信息，参考回答

### 2.正常随便聊聊（无工作流）

<figure><img src="/files/s86j2G1KutOyjtBD1myq" alt=""><figcaption></figcaption></figure>

### 3.使用编排好的 联网查询 助手 提问

<figure><img src="/files/cpVikktUm7eb5Cfgi4nR" alt=""><figcaption></figcaption></figure>

***

## 二.工作流编排步骤

### 1.创建工作流

<figure><img src="/files/ev9VvwH8mioyAhQU6MMt" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/2rUf0683Wag9YqjMMUbq" alt=""><figcaption></figcaption></figure>

### 2.导入工作流

> 下载 联网查询助手Demo.json，在编排页面，导入流程

{% file src="/files/AdqiU38agGANM7N49AAj" %}

<figure><img src="/files/ATapUU4lwLrJaw3i0m6V" alt=""><figcaption></figcaption></figure>

### 3.修改联网查询key

> 点击这里放大展示

<figure><img src="/files/dOev09VDLDAItDlVF97G" alt=""><figcaption></figcaption></figure>

修改这个value，这个值在哪里获得呢？<mark style="color:purple;">请看下一节：4.获取 Serper Key</mark>

<figure><img src="/files/ErZeZZq4SP9YPaTBL9Zx" alt=""><figcaption></figcaption></figure>

### 4.获取 Serper Key

注册申请一个账号，在这里获得：<https://serper.dev/api-key>

会赠送很多额度，足够个人使用的了

点击Copy，把这个值，填写到 3.修改联网查询key 里面 我们还没填写的 value 即可

<figure><img src="/files/jMaNthkKu8k9qX0WAK1P" alt=""><figcaption></figcaption></figure>


---

# 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://doc.nyai.chat/shi-yong-an-li/an-li-yi.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.
