# 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="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2FqcvXNfZZbtZvZOEKyBjv%2Fchat-7%20(1).gif?alt=media&#x26;token=eac25069-ade0-4c5b-846a-32dc9c9ee58a" 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="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2FQM9RizGi9aB739M9JDGC%2Fchat-1%20(1).gif?alt=media&#x26;token=e240544a-b6db-49d9-8ca0-e48605fdf755" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2Fn1NWKymeZPb6gzuSEiSc%2Fchat-2%20(1).gif?alt=media&#x26;token=4f0af6d8-6894-49e2-b3a3-ed61c715c84f" 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="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2F5ErT2hxSaeEuK5kwIrdv%2Fchat-3%20(1).gif?alt=media&#x26;token=afc96491-83ab-4449-9f35-e62bf33c0856" 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="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2F5ucWXeOMDxyO43GLLiMm%2Fchat-4%20(1).gif?alt=media&#x26;token=9a69b9b0-e691-480c-bf49-46a9cc46c1d5" alt=""><figcaption><p>Open the chat and your worflow from the dropdown</p></figcaption></figure>

<figure><img src="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2FbM6R4vQWPsIH7m2jXpyB%2Fchat-5%20(1).gif?alt=media&#x26;token=fdf11659-24c0-4c6b-bc72-ee614d789ea0" alt=""><figcaption><p>Test your simple agent using the chat interface</p></figcaption></figure>

<figure><img src="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2FaP6q7hEyPhxHRmcBaSMW%2Fchat-6%20(1).gif?alt=media&#x26;token=24010ec3-8546-415f-8fa0-894a1980b343" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4279757243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTbBxR0Ob7RUmbvHZkQi2%2Fuploads%2FiNC6CyTxl4hHHYCffX29%2Fchat-7%20(1).gif?alt=media&#x26;token=c26c1be6-70b9-4ca3-becd-fcd266702fbe" 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 👩‍🚀
