Skip to the content.

Base Apps

English | 日本語

Table of Contents

  1. Chat
  2. Language Practice
  3. Language Practice Plus
  4. Novel Writer
  5. PDF Navigator
  6. Talk to Cohere Command R
  7. Talk to Anthropic Claude
  8. Talk to Google Gemini
  9. Translate
  10. Voice Chat
  11. Voice Interpreter
  12. Wikipedia
  13. Math Tutor
  14. Image Generator
  15. Mail Composer
  16. Flowchart Grapher
  17. Music Composer
  18. Content Reader
  19. Code Interpreter
  20. Coding Assistant
  21. Video Describer
  22. Discourse Analysis

Currently, the following base apps are available for use. By selecting one of them and changing the parameters or rewriting the initial prompt, you can adjust the behavior of the AI agent. You can export/import the adjusted settings to/from an external JSON file.

Chat

This is the standard application for monadic chat. It conducts text-based conversations. The AI agent generates responses to user input, adds appropriate emojis, and advances the conversation.

Recipe file: chat_app.rb

Language Practice

This is a language learning application where conversations begin with the assistant’s speech. The assistant’s speech is played back in a synthesized voice. To speak, press the Enter key to start speech input, and press Enter again to stop speech input.

Recipe file: language_practice_app.rb

Language Practice Plus

This is a language learning application where conversations start with the assistant’s speech. The assistant’s speech is played back in a synthesized voice. To speak, press the Enter key to start speech input, and press Enter again to stop speech input. The assistant’s response will include linguistic advice in addition to the usual content. The language advice is presented only as text and not as text-to-speech.

Recipe file: language_practice_plus_app.rb

Novel Writer

This is an application for collaboratively writing a novel with an assistant. Craft a novel with engaging characters, vivid descriptions, and compelling plots. Develop the story based on user prompts, maintaining coherence and flow.

Recipe file: novel_writer_app.rb

PDF Navigator

This is an application that reads a PDF file, and the assistant answers the user’s questions based on its content. First, click on the “Upload PDF” button and specify the file. The content of the file will be divided into segments of approximately max_tokens length, and the text embedding will be calculated for each segment. When input is received from the user, the text segment that is closest to the text embedding value of the input text is given to GPT along with the user’s input value, and an answer is generated based on that content.

Recipe file: pdf_navigator_app.rb

Talk to Cohere Command R

This app accesses the Cohere Command R API to answer questions about a wide range of topics. Please set your API token and the model name in ~/monadic/data/.env.

Example:

COHERE_API_KEY=api_key
COHERE_MODEL=command-r-plus

Recipe file: talk_to_cohere_app.rb

Talk to Anthropic Claude

This app accesses the Anthropic Claude API to answer questions about a wide range of topics. Please set your API token and the model name in ~/monadic/data/.env.

Example:

ANTHROPIC_API_KEY=api_key
ANTHROPIC_MODEL=claude-3-opus-20240229

Recipe file: talk_to_claude_app.rb

Talk to Google Gemini

This app accesses the Google Gemini API to answer questions about a wide range of topics. Please set your API token and the model name (with models/ prefix) in ~/monadic/data/.env.

Example:

GEMINI_API_KEY=api_key
GEMINI_MODEL=models/gemini-1.5-pro-latest

Recipe file: talk_to_gemini_app.rb

Translate

The assistant will translate the user’s input text into another language. First, the assistant will ask for the target language. Then, the input text will be translated into the target language. If you want the assistant to use a specific translation, please put parentheses after the relevant part of the input text and specify the translation in the parentheses.

Recipe file: translate_app.rb

Voice Chat

This app enables users to chat using voice through OpenAI’s Whisper API and the browser’s text-to-speech API. The initial prompt is the same as the one for the Chat app. Please note that a web browser with the latter API, such as Google Chrome or Microsoft Edge, is required.

Recipe file: voice_chat_app.rb

Voice Interpreter

The assistant will translate the user’s input text into another language and speak it using text-to-speech voice synthesis. First, the assistant will ask for the target language. Then, the input text will be translated into the target language.

Recipe file: voice_interpreter_app.rb

Wikipedia

This is essentially the same as Chat, but for questions that GPT cannot answer, such as questions about events that occurred after the language model cutoff time, it searches Wikipedia to answer them. If the query is in a non-English language, the Wikipedia search is performed in English, and the results are translated into the original language.

Recipe file: wikipedia_app.rb

Math Tutor

This is an application that allows an AI chatbot to respond using MathJax mathematical notation. Please note that while this app can display mathematical notations, the math calculation ability is based on OpenAI’s GPT models, which are known to occasionally produce errors. Therefore, please use this app with caution when accuracy in calculations is required.

Recipe file: math_tutor_app.rb

Image Generator

This is an app that generates images based on a description. If the prompt is not concrete enough or if it is written in a language other than English, the app will return an improved prompt and asks if the user wants to proceed with the improved prompt. It uses the Dall-E 3 API. The generated images are saved in the Shared Folder and displayed in the chat.

The generated images are saved in the Shared Folder and displayed in the chat.

Recipe file: image_generator_app.rb

Mail Composer

This is an application for writing draft novels of email messages in collaboration with an assistant. The assistant writes the email draft according to the user’s requests and specifications.

Recipe file: mail_composer_app.rb

Flowchart Grapher

This application hep you visualize data leveraging mermaid.js. Give any data you have or a description of the data, and the agent will provide the mermaid code for a flow chart and display the chart.

Recipe file: flowchart_grapher_app.rb

Music Composer

This is an app that writes a simple sheet music using the ABC notation. The assistant will ask for the instrument, the genre, and the style of music. Then, the assistant will display the sheet music and you can play it using the embedded MIDI player.

Recipe file: music_composer_app.rb

Content Reader

This application features an AI chatbot designed to examine and elucidate the contents of any imported file or web URL. The explanations are presented in an accessible and beginner-friendly manner. Users have the flexibility to upload files or URLs encompassing a wide array of text data, including programming code. When URLs are mentioned in your prompt messages, the app automatically retrieves the content, seamlessly integrating it into the conversation with GPT.

To specify a file you want the AI to read, save the file in the Shared Folder and provide the file name in your User message. If the AI cannot find the file, check the file name and confirm in your message that it is available from the current code execution environment.

The following file formats are supported:

It is also possible to read the contents of an image file (PNG, JPEG, etc.) and have the AI recognize and explain the content. Additionally, you can read the contents of an audio file (MP3, etc.) and output the content as text.

Recipe file: content_reader_app.rb

Code Interpreter

This is an application that allows AI to create and execute program code. The execution of the program uses a Python environment within a Docker container. The text data and images obtained as execution results are saved in the Shared Folder and also displayed in the chat. If you request something like Start Jupyter Notebook, a Jupyter Notebook will be launched in the current code execution environment. (Jupyter Notebook can be used to check the Python execution environment and install libraries.)

If you have files (such as Python code or CSV data) that you want the AI to read, save the files in the Shared Folder and specify the file name in the User message. If the AI cannot find the file, please check the file name and ensure that it is available from the current code execution environment.

Recipe file: code_interpreter_app.rb

Coding Assistant

This is an application for writing computer programming code. possible. You can interact with a friendly but professional software engineer who answers various questions, writes computer program code, makes decent suggestions, and gives helpful advice in response to your prompts.

Recipe file: coding_assistant_app.rb

Video Describer

This is an application that analyzes video content and provides a description of the video. The AI analyzes the video content and provides a detailed explanation of what is happening. Internally, the app extracts frames from the video and converts them into PNG images in base64 format. Additionally, it extracts audio data from the video and saves it as an MP3 file. Based on these, the AI provides a comprehensive description of the visual and audio information contained in the video file.

To use this application, the user needs to place the video file in the Shared Folder and provide the file name. Additionally, the user must specify the frames per second (fps) for frame extraction. If the total frames exceed 50, only 50 frames will be extracted proportionally from the video.

Recipe file: video_describer_app.rb

Discourse Analysis

This is an application for analyzing and summarizing the user’s discourse. The AI generates a summary of the user’s messages, identifies the main topics, classifies the sentence types, and determines the sentiment of the messages. This app uses the monadic feature of the Monadic Chat framework. It accumulates and summarizes the past discourse contents and passes them over to the following conversation turns.

Recipe file: discourse_analysis_app.rb