Introducing the AI Extension for MIT App Inventor! 
Hello, App Inventor Community!
I’m excited to share a new extension I’ve created called the AI Extension. This extension allows your apps to communicate with an AI-powered API (like GPT) by sending text and receiving responses. It’s perfect for building chatbots, language tools, or any app that needs AI-generated text!
What Does It Do?
The AI Extension sends a request to a custom API endpoint (https://nimaartman.ir/science/L1.php?text=
) It uses powerbrainai.com to fetch the data using gpt 4-o with the text you provide.(no limit) It then retrieves the AI-generated response and makes it available in your app. You can use this to create interactive, AI-driven features in your projects.
Key Features
- SendRequest(text): Send text to the AI API.
- OnResponse(response): Receive the AI-generated response as an event.
- Simple Integration: Just drag and drop the extension into your app and start using it
How to Use
- Add the AI Extension to your project.
- Use the
SendRequest
block to send text to the API. - Handle the response using the
OnResponse
event. - Display or process the AI-generated text in your app.
Blocks Screenshot
Get Started
Download the extension and try it out in your next project!
NimaAI.aix (535.7 KB)
Note
Please be aware, that the extension stops working if the server goes down
Feedback Welcome!
I’d love to hear your thoughts, suggestions, or any cool projects you build with this extension.
Happy Nowruz!