# MoosAI

{% hint style="info" %}

### 集成-MossAI组件

{% endhint %}

<figure><img src="/files/liUEns64SkywWKAkn8zN" alt="" width="282"><figcaption></figcaption></figure>

{% hint style="info" %}

### MossAI上下文带入组件范围

输入-文本组件、气泡-文本组件、输入按钮组件、输入评分组件
{% endhint %}

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

###

### **创建聊天完成**

{% hint style="info" %}
打开 MossAI 组件后，你可以根据自身的条件创建AI对话，并且将答案以变量的形式，在气泡文本组件中显示
{% endhint %}

1、选择你要设置的模型

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

2、根据你自己的要求，设置System、user、assistant提示词

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

3、点击Save resonse，然后输入“答案”，把AI输出的内容保存在“答案”中

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

4、添加气泡文本组件，然后把“答案”变量，设置在气泡文本组件内

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

5、只要点击发布，我们就完成了

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

<figure><img src="/files/WjpWsnytNi9m87N006Up" 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/moosai.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.
