# Light Builder

The Light Builder allows you to create straightforward, yet powerful conversational AI applications. This page guides you through the process of configuring and testing your basic chatbot.

Cost: 1 credit for basic chatbot (without knowledge usage), and 2 credits for a RAG chatbot (with knowledge usage).

### Configuration

When you create or edit a basic chatbot, you'll see a configuration form with the following options:

#### Model Selection

1. **Primary Model**:
   * Select the main AI model for your chatbot.
   * Choose from a list of available models connected to your configured providers.
2. **Fallback Model** (Optional):
   * Select a secondary model to use if the primary model fails or is unavailable.
   * You can choose "None" if you don't want to use a fallback model.

#### Instruction

* Provide specific instructions or prompts for your chatbot.
* This sets the context and behavior for your chatbot's responses.
* Use this to define the chatbot's personality, knowledge base, or specific tasks it should perform.

#### Knowledge Integration

1. **Use Knowledge**:
   * Toggle this option to enable or disable the use of additional knowledge bases.
2. **Knowledge Collections**:
   * If "Use Knowledge" is enabled, you can select one or more knowledge collections to enhance your chatbot's responses.
   * These collections can provide domain-specific information to make your chatbot more informative and contextually aware.

### Live Experimentation

The Basic Chatbot configuration page includes a live chat interface for immediate testing:

* **Chat Interface**: Interact with your chatbot in real-time to test its responses based on your current configuration.
* **Reset Conversation**: Clear the chat history to start a fresh conversation.
* **Stop Generation**: Interrupt the chatbot's response generation if needed.

### Saving and Publishing

* **Save**: Updates your chatbot configuration without making it live.
* **Save and Publish**: Updates the configuration and makes the latest version of your chatbot available for use.

### Best Practices

1. **Clear Instructions**: Provide detailed and clear instructions to guide your chatbot's behavior effectively.
2. **Test Thoroughly**: Use the live chat interface to test various scenarios and refine your configuration.
3. **Iterative Improvement**: Start with a basic setup and gradually enhance your chatbot based on testing results.
4. **Knowledge Integration**: Carefully select relevant knowledge collections to improve the chatbot's domain-specific knowledge without overwhelming it.
5. **Fallback Strategy**: Consider using a fallback model for improved reliability, especially for critical applications.

### Tips for Effective Basic Chatbots

* **Define Purpose**: Clearly define the primary purpose of your chatbot (e.g., customer service, information retrieval, task assistance).
* **Personality**: Use the instruction field to give your chatbot a consistent personality that aligns with your brand or use case.
* **Handle Edge Cases**: Test and provide instructions for handling off-topic queries or sensitive information requests.
* **Monitor and Update**: Regularly review chatbot interactions and update your configuration to improve performance over time.

By leveraging these configuration options and best practices, you can create effective and engaging Basic Chatbots tailored to your specific needs using Waterflai.


---

# 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.waterflai.ai/studio/studio-builders/light-builder.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.
