Create AI Assistants with Magic Cloud
Today we release our newest addition to the Magic Cloud AI toolchain; AI assistants - Or "AI functions" as we refer to them as.
An AI functions is just a special training snippet that allows OpenAI to construct function invocations, that is locally executed on your cloudlet, for then to transmit the response back to OpenAI again.
This allows you to ask questions such as; "Retrieve the 5 last customers from my CRM system, and return their email address to me" - All from within your familiar AINIRO AI chatbot. To understand the feature it might be beneficial to watch the following video.
How it works
We already had Hyperlambda workflows, and the ability to create such workflows using No-Code constructs and Low-Code constructs. The only thing we really needed to do to create assistants logic, was to implement support for declaratively add workflows into your machine learning type. This is done as follows.
- Open the Machine Learning component in your Magic dashboard
- Click training data
- Choose your type in the filter select dropdown listbox
- Click the "Add function" button
Once you've done the above steps, you'll end up with something resembling the following.
Warning! This feature is an experimental BETA feature. We might change the logic in future releases resulting in that you'll have to modify your code. If you're comfortable with this, feel free to play with the AI assistants logic in Magic as much as you wish.
Once you've selected a workflow from the above screen, you can prompt engineer your training snippet as much as you wish. Just make sure its core logic stays as it is when created by Magic, since the AI function feature in Magic depends upon OpenAI returning a very specific result when it wants to invoke such workflows.
AI function invocations can be chained, something illustrated in the above video, where I provide a prompt that invokes OpenAI multiple times, once for each function, where the output from one function invocation is used as input to another function invocation. To understand how this works, consider the following screenshot.
No-Code Hyperlambda Workflows
Currently, out of the box, Magic doesn't have many workflows - But creating workflows is extremely easy. Just create a new module, or use an existing module, make sure your module has a folder called "workflows", and add Hyperlambda files into this folder as you see fit.
The process can be done completely without manually having to create code. To understand the concept, you might want to watch the following video. Notice, your workflow Hyperlambda files does not need to be HTTP endpoints.
Then when you go click the "Add function" button on your type's training snippets, your workflow will automatically pop up and be possible to select.
Future Development
In the future we will add lots of pre-existing workflows, covering all sorts of scenarios. Examples could be for instance.
- Scrape website
- Create customer in CRM system
- Send summary of conversation to my email address
- Etc, etc, etc
However, for the time being, the only real workflow we've got out of the box is "Send owner an email", which serves kind of like an alternative to "Contact us" forms. In addition we are considering bridging the backend generator and scaffolding parts of Hyperlambda with such AI functions, allowing you to rapidly add "CRUD AI functions" to your AI chatbot.
In addition, we are considering re-animating our "AI Expert System", in a new form, allowing you to have privately accessible AI chatbots that you only expose to those you want to expose these to. This would provide an alternative to GPT assistants, possibly with integrated monetization capabilities, allowing you to rapidly create your own SaaS-based AI chatbots.
Conclusion
Having AI assistants capabilities in your AI chatbots opens up a completely new axiom, and is an addition to all the nifty features we already have in Magic Cloud. With this feature, our core technology have taken a huge leap forward in regards to usability and usefulness. If you want to discuss how we can help you out solving your particular needs related to AI, you can contact us below.
Disclaimer; This part of Magic is not completely stabilised yet, and should be considered an experimental feature. However, this is something we will spend a lot of energy on stabilising and expanding upon - So expect to see a lot more from this feature in the future.
Have a Custom AI Solution
At AINIRO we specialise in delivering custom AI solutions and AI chatbots with AI agent features. If you want to talk to us about how we can help you implement your next custom AI solution, you can reach out to us below.