[FREE] - MIT AI2's ChatBot - the Cloned version of Appinventor's ChatBot

ChatBot

An extension for Kodular, and Niotron.
This extension is cloned from The MIT AI2's ChatBot Component, this is only for Niotron and Kodular.

:memo: Specifications


:package: Package: com.ahmedislam.chatbot
:floppy_disk: Size: 28.58 KB
:mobile_phone: Minimum API Level: 14
:date: Updated On: 2026-02-08T22:00:00Z
:laptop: Built & documented using: FAST v5.4.0


Events:

ChatBot has total 3 events.

1. GotResponse

component_event
)
Event fired when the Chat Bot answers a question.

Parameter Type
responseText text

2. GotResponseWithImage

component_event

Event fired when the Chat Bot answers a question, with an image.

Parameter Type
responseText text
fileName text

3. ErrorOccurred

component_event
Event for ErrorOccurred

Parameter Type
responseCode number
responseText text

Methods:

ChatBot has total 4 methods.

1. ResetConversation

component_method
Reset the current conversation, Chat bot will forget any previous conversation when responding in the future.

2. Converse

component_method
Ask a question of the Chat Bot. Successive calls will remember information from earlier in the conversation. Use the “ResetConversation” function to reset for a new conversation.

Parameter Type
question text

3. CreateImage

component_method
Create an Image. Note: Only Gemini is currently supported. Do not specify a model in order to get the most up-to-date model to use.

Parameter Type
description text

4. ConverseWithImage

component_method
Ask a question of the Chat Bot using an Image. Successive calls will remember information from earlier in the conversation. Use the “ResetConversation” function to reset for a new conversation.

Parameter Type
question text
source any

Designer:

ChatBot has total 5 designer properties.

1. System

image

  • Input type: textArea

2. Token

image

  • Input type: string

3. ApiKey (API Key)

image

4. Provider

image

  • Input type: string
  • Default value: chatgpt

5. Model

image

  • Input type: string

Setters:

ChatBot has total 5 setter properties.

1. System

component_set_get
The “System” value given to ChatGPT. It is used to set the tone of a conversation. For example: “You are a funny person.”

  • Input type: text

2. Token

component_set_get
The MIT Access token to use. MIT App Inventor will automatically fill this value in. You should not need to change it.

  • Input type: text

3. ApiKey

component_set_get
A ChatGPT API Key. If provided, it will be used instead of the embedded APIKEY in the ChatBot proxy server

  • Input type: text

4. Provider

component_set_get
Set the name of the provider to use. See chatbot/imagebot for the current list of supported providers.

  • Input type: text

5. Model

component_set_get (4)
Set the name of the model to use. See chatbot/imagebot for the current list of supported models. Leaving this blank will result in the default model set by the provider being used

  • Input type: text

Getters:

ChatBot has total 4 getter properties.

1. System

component_set_get
The “System” value given to ChatGPT. It is used to set the tone of a conversation. For example: “You are a funny person.”

  • Return type: text

2. ApiKey

component_set_get
A ChatGPT API Key. If provided, it will be used instead of the embedded APIKEY in the ChatBot proxy server

  • Return type: text

3. Provider

component_set_get
Set the name of the provider to use. See chatbot/imagebot for the current list of supported providers.

  • Return type: text

4. Model

component_set_get
Set the name of the model to use. See chatbot/imagebot for the current list of supported models. Leaving this blank will result in the default model set by the provider being used

  • Return type: text

Downloads:

AIX: com.ahmedislam.chatbot.aix (28.6 KB)
AIA Example:
chatbot.aia (37.3 KB)


Thanks to @JEWEL For the Compiler, FAST CLI.

1 Like