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! NIMAAIFIXED.aix (8.8 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.
Actually, it can generate more than 2,000 characters. As mentioned in my post, there is no limit for this AI. However, please note that the server may occasionally experience downtime, which could result in the extension temporarily stopping its functionality.
Hello, Sorry for late reply. there was an issue with the extension but I've fixed it. just upload the fixed extension file to the app inventor and the error should be resolved. NIMAAIFIXED.aix (8.8 KB)
Could you explain how you managed to make it work? PowerBrainAI doesn’t appear to offer a public API, so it seems you aren’t calling it to get the response.
Hello, I do send API Request using POST method to PowerBrainAI and I use a custom system prompt to get the answers the way I like. currently this extension uses gpt-4o-mini to get the answers. I can give you more information using private chat if you like.