m-Power now includes integrated Artificial Intelligence (AI) features designed to help developers work more efficiently and produce higher-quality applications. These AI helpers assist with a variety of tasks, including answering general how-to questions about m-Power, providing HTML coding guidance in m-Painter, and assisting with chart creation. By leveraging AI directly within the interface, developers can simplify complex tasks, get guidance on challenging problems, and more easily complete routine or intricate development work.
Registering for an AI API Key
In order to utilize AI features in the m-Power interface, a free API key is required. Follow these steps to register and configure your key:
- Generate an API Key
- Log into your Customer Portal.
- Go to Product Information and then m-Power AI API Key.
- Follow the instructions to generate an API key.
- Important: Copy and save the generated key immediately. Once you leave the page, the key will be encrypted and cannot be retrieved. If needed, a new key can always be generated.
- Configure the m-Power Server
- On your m-Power server, open: /development/m-power/proddata/conf/mrctool.properties
- Add the following line, replacing [PASTE API KEY HERE] with your API key:
mrc_gateway_api_key=[PASTE API KEY HERE] - Save the file.
- Restart Tomcat and sign back into the m-Power interface.
- Once signed in, you will be able to click the Ask AI button in the top right header bar to start interacting with the m-Power AI Chatbot.
AI Features in the m-Power Interface
The m-Power interface includes several AI-driven helpers to enhance development efficiency.
Ask AI m-Power Chat Bot
The AI m-Power Chat Bot provides instant answers to general how-to questions about the m-Power platform. It leverages a knowledgebase built from the m-Power documentation and training manual to offer helpful guidance directly within the interface. While it can assist with common questions and provide direction, it is not a replacement for mrc support. Developers can use the chatbot to quickly clarify functionality, learn best practices, and get tips to accelerate their app development.
Learn more about the m-Power Chatbot.
AI m-Painter HTML Helpers
The AI m-Painter HTML Helpers assist developers in creating and managing HTML code more efficiently. Two chatbot helpers allow developers to simply describe what they want coded, and the AI will generate the appropriate HTML and insert it directly into the existing code. This functionality is available both in the Design Editor and in Source Mode.
Learn more about the AI m-Painter helpers.
AI System Prompt Helper
A well-crafted system prompt can make the difference between a highly effective AI assistant and one that provides less useful results. The AI System Prompt Helper guides developers in creating strong prompts by asking them to describe the purpose, rules, and guidelines for the prompt. Based on this input, the helper generates an optimized system prompt that can be used to improve the quality and relevance of AI responses. This tool ensures your AI assistants behave consistently and deliver more accurate, helpful guidance.
Learn more about the AI System Prompt helper.
AI Charting Helper
The AI Charting Helper allows developers to quickly create charts by simply describing the type of chart they want and specifying the fields to include. The AI then generates the chart and inserts it directly into the application, streamlining the process of visualizing data. This functionality helps developers save time, reduce manual configuration, and ensure charts are correctly formatted and consistent with the application’s design. With the AI Charting Helper, even complex chart requirements can be implemented with minimal effort.
Learn more about the AI Chart helper.
Disabling AI Features
If you wish to disable AI features in the m-Power interface:
- Open the file:
/development/m-power/proddata/conf/mrctool.properties - Add the following line at the bottom of the file:
enable_ai=false - Save the file and restart Tomcat.
- Sign back into the m-Power interface.
To re-enable AI features in the future, set this line to true and follow the steps above to generate and configure an AI API Key.