# Chat

The chat feature allows users to interact with deployed workflows directly through a chat-like interface. This page outlines the steps and functionality associated with setting up and using the chat feature, including the ability to utilize workflows, orchestrators, and agents in a conversational manner. The chat feature supports both streaming and full-response modes.

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

### **Steps to Use the Chat Feature**

#### 1. **Create a Workflow**

* To use the chat feature, you must first create a workflow in the **Workflows** section of the platform.
* Workflows can include combinations of **LLMs**, **agents**, **orchestrators**, or **other workflows** to define the logic and flow of operations.
* Ensure that your workflow meets your desired conversational requirements.

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

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

#### 2. **Deploy the Workflow**

* After creating a workflow, you need to deploy it to be able to access it from the chat interface.
* You can manage and update workflows post-deployment to enhance functionality.

<figure><img src="/files/9yBqnK3KaGzq9EQbVwtP" alt=""><figcaption></figcaption></figure>

#### 3. **Access the Chat Interface**

* Navigate to the **Chat** option on the platform under the **creator** drop down in the top right corner
* In the chat interface, select the deployed workflow you wish to interact with from the dropdown menu.
* The workflows available in the dropdown will correspond to the workflows you have created and deployed.

<figure><img src="/files/JYQeUoJH4YJG34kOpyD2" alt=""><figcaption><p>Open the chat and your worflow from the dropdown</p></figcaption></figure>

<figure><img src="/files/o0DAORURDYA2qBEq0Zur" alt=""><figcaption><p>Test your simple agent using the chat interface</p></figcaption></figure>

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

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

***

### **Chat Modes**

#### **Streaming Mode**

* When enabled, streaming mode allows responses to be delivered progressively in real time.
* This mode is particularly useful for lengthy responses or when a fast interaction is required.

#### **Full-Response Mode**

* Full-response mode sends the complete response at once after processing is finished.
* This mode is useful for responses where accuracy and completeness are prioritized over speed.

You can toggle between these modes based on the requirements of your conversation.

### **Features of the Chat Interface**

#### **Workflow Integration**

* Use the chat interface to test, debug, or interact with your workflows.
* The chat supports a diverse range of workflows, including those that involve:
  * **LLMs**  for generating content or answering queries.
  * **Agents** for decision-making or task execution.
  * **Orchestrators** to coordinate multiple workflows or actions.

#### **Search and Selection**

The interface allows you to search for specific workflows from a dropdown list, making it easy to locate and use a desired workflow.

#### **Custom Interaction**

The chat feature supports workflows tailored for specific use cases, such as data analysis, customer service, or content generation.

***

### **Best Practices**

**Test Your Workflow**

* Before using a workflow in the chat feature, thoroughly test it to ensure it behaves as expected.
* Debug any issues during the creation phase.

**Choose the Right Mode**

* For dynamic, real-time conversations, use **Streaming Mode**.
* For structured and detailed interactions, opt for **Full-Response Mode**.

**Iterate and Improve**

* Use the feedback from chat interactions to refine your workflows for better results.

The chat feature provides a flexible and interactive way to engage with your workflows, making it ideal for a wide range of use cases. By creating, deploying, and fine-tuning workflows, you can unlock the full potential of this functionality 👩‍🚀


---

# 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://docs.getdynamiq.ai/low-code-builder/chat.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.
