Chat4Us chat bots examples

During the development process, we created numerous chat bot examples to test Chat4Us features and assist in adding new ones. These examples are intended for testing and educational purposes only, not for production use.

Before proceeding further, ensure you have already installed Chat4Us components and dependencies. Additionally, familiarize yourself with the basic tutorial on how to create your first chat bot.

Variables Demo

During a chat session, the chat bot logic can read and write variables for each session. This allows it to use these variables laterโ€”whether to process them with a script, display results to the user, query or store data in a local database/file or interact with a web API server.

The following example demonstrates how the chat bot can ask users questions such as their name and email. It stores this information during the session and then displays it in a simple paragraph at the end of the conversation.

Download info-plus-resume.ria

Web Api Demo

Chat bots created with Chat4Us can interact with remote web servers using GET/POST methods through the script feature. This example demonstrates how to query a web API server for user IP information.

By leveraging this functionality, chat bots can retrieve data dynamically and provide more personalized interactions.

Download web-api-demo.ria

Scheduling appointments for a doctor’s office

Chat bots created with Chat4Us can query and store data in a SQLite database using the script feature. The chat bot begins by displaying a welcome message and then asks users whether they want to schedule, check, or cancel an appointment.

The process starts with collecting personal information from the user. It then prompts for the date and time of the appointment. If available, the chat bot schedules it for the user and stores the data in the database using the script feature. Otherwise, it displays a table showing availability on that day.

At the end, the chat bot provides the user with an ID for their appointment, which is necessary when they want to check or cancel it later.

Download appointments-scheduler.ria

Personality Quiz

This is a simple chat bot designed to help remote users discover their own personality traits. It begins by asking several questions and uses responses to provide valuable insights into personality traits.

This chat bot uses Llama 3.2 3B Instruct language model to animate the chat. GPT4All must be installed for this example to work properly.
Download now and have fun exploring your unique personality!

Download personality-quiz.ria

Bahia palace virtual guide

This virtual guide helps users explore the Bahia Palace monument. It starts with an overview and then transitions to an AI assistant, allowing you to ask questions about the site.

The chat bot supports multiple languages: English, French, and Arabic. Before using this chat bot, follow these steps:

  1. Download palais-bahia-chatbot.zip.
  2. Extract palais-bahia.ria, palais-bahia-en.ria, and palais-bahia-ar.ria into the chatbots sub-folder.
  3. Extract the Palais Bahia folder and its contents into a new directory.
  4. Open GPT4All, navigate to LocalDocs, and click +Add Collection.
  5. Enter the name of your collection.
  6. Browse for the Palais Bahia folder.
  7. Click Create Collection.

At present, adding documents to an AI model in GPT4All requires navigating to the Chats view, selecting Server Chat, then choosing LocalDocs and picking the collection. If this step is skipped, the virtual assistant may generate incorrect responses about the Bahia Palace.

The example’s document collection is written in French, but the AI assistant effectively reads it in French and generates English-language responses. Arabic support does not translate person names from Latin script.

Download palais-bahia-chatbot.zip

Stay tuned…

We will add more examples to this page as there are more features and advanced functionalities that needs to be covered. If you need an example or a tutorial about a special Chat4Us feature, feel free to ask for it using the contact page