# 二维码

{% hint style="info" %}

### 集成-二维码组件

{% endhint %}

<figure><img src="/files/l8aSzY92ApPMcf1pS4zO" alt="" width="251"><figcaption></figcaption></figure>

{% hint style="info" %}
二维码组件可以通过URL，或者文本数据生成任意二维码，它也可以通过变量的方式进行传递参数
{% endhint %}

1、在这里添加URL或者文本数据的变量

<figure><img src="/files/xdVNU2ITccpHgcEPOPwJ" alt="" width="353"><figcaption></figcaption></figure>

2、设置一个变量为“二维码数据”这个数据，就是最后要输出的二维码

<figure><img src="/files/GHeEBUcb1Jr3otz6SoD1" alt="" width="353"><figcaption></figcaption></figure>

3、生成的既然是二维码图片，那么此时的我们需要用到气泡-图片组件，进行结果输出

<figure><img src="/files/y6HbRzKFNdiRRY6pYkLU" alt="" width="375"><figcaption></figcaption></figure>

4、最后生成的结果如下

<figure><img src="/files/302FOccfZwmFxoJlsvfW" alt="" width="375"><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/jin-jie-jiao-cheng-gong-zuo-liu/ji-cheng-zu-jian/er-wei-ma.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.
