Minder AI Structured Interactive Language - A New Frontier Open Standard

MASIL (Minder AI Structured Interactive Language) is a revolutionary framework combining the flexibility of free-form prompt data in YAML-like formats with the precision and reliability of structured XML schemas.

Future: use the XML as a super prompt, and perhaps ChatGPT could run locally the CSS/JS in the XML file, that would open up great posibilities.

The entire .masil (XML) file can be pasted into ChatGPT as a super prompt , then just follow the instructions - simple.

READ Hackernoon Artilce:

Try the *HTML file at: playground at: Glitch :ļ½„ļ¾Ÿāœ§


At the top of a MASIL file, users can define free-form commands or prompts in a human-readable style to quickly interact with AI systems. These prompts allow intuitive and natural exploration of AI capabilities, such as validating data, generating reports, or fixing inconsistencies.

Below, MASIL transitions into a highly structured XML format, ensuring clear separation of data, workflows, and presentation logic. This dual-layer design supports both rapid prototyping and long-term predictability, making MASIL versatile for both non-programmers and developers. Features like modular components and ā€œSuper Promptsā€ empower users to define precise inputs and outputs, allowing AI interactions to be predictable yet adaptable.

Developers can test this hybrid functionality now via the MASIL Playground, which demonstrates how natural language prompts and structured data seamlessly integrate. MASILā€™s approach offers a path forward for AI applications that value both user-friendly interaction and robust backend workflows.
Sample MASIL File

  • This is used with a HTML file for presentation and JS interactivity - and the ENTIRE file can be used as a prompt for ChatGPT.
  • The database can be generated by ChatGPT and pasted back into the .masil file.
  • Try this all out at Playground
  • Glitch :ļ½„ļ¾Ÿāœ§
<?xml version="1.0" encoding="UTF-8"?>
<masil xmlns="http://masil.org/schema/v1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://masil.org/schema/v1 masil.xsd" version="1.0" masil-strict="true">
    <!-- START - AI comments section -->
    <doc>
        title: Dog API Demoxx
        author: John Doexx
        version: 1.0
        date: 2024-01-15
        description: A demo of the Dog API integration
        company: Example Corp
    </doc>

    <size>
        large: 50 lbs
        medium: 25lb
        small: 10lbs
    </size>

    welcome_message:
    ### Welcome to: [doc.title].
    > You can interact with the database using the following commands or natural language:
    - `/report` to display `markdown_report` 
    - `/explain` to display `report` with data in tabular form
    - `/update` to show CSV data with any changes AI made to data
    - `/validate` to validate data for accuracy
    - `/fix` correct the data based on validation by AI
    - `/random` to add 5 random records to data
    - `/history` to show a numbered list of every user prompt during this session
    - `/summary` to summarize entire chat session with list of prompts
    - `/intro` to meet the vet and say hello
    - `/help` to get help on what you can ask AI to do with this data

    structure:
    - AI: Processes logic, commands, and markdown rendering.
    - Web: Handles UI rendering in `    <masil-web>` components. (AI to ig)
    - Data: Stores and manages shared data in `<masil-data>`.

    # role for AI
    ai_role:
    - A veterinarian, friendly, kind, reassuring and patient.
    - Avoid use of complex medical terminology.
    - Use analogies to explain complex concepts.

    intro:
    - AI to introduce to provide a friendly introduction to the user.
    - AI to reference `masil-data name="vet-info"` 
    - Add this to end of introduction : "I'm a vet not an engineer."

    markdown_report:
    ![](https://i.aimarkdown.org/dogdatabase.png)

    ### Dogs size is: [size.large].

    **[doc.company]**  
    _by: [doc.author]_

    [data-table]
                                                                            <!-- END - AI comments section -->
    <masil>
        <masil-data name="dogs">
            <![CDATA[
Name,Age,Color,Breed,Lifespan,Temperament
Gracie,31,beige,Jack Russell,55,Energetic
Butch,9,beige,Mixed,10,Energetic
Max,13,black,German Shepherd,11,Confident
Bella,9,white,Poodle,12,Smart
Charlie,5,green,Husky,12,Stubborn
]]>
        </masil-data>

        <masil-data name="breeds" format="list" type="tags">
            <![CDATA[
        title: Popular Breeds
        items:
          - Labrador
          - German Shepherd
          - Poodle
          - Husky
          - Bulldog
        ]]>
        </masil-data>

        <masil-data name="food" format="list" type="ol">
            <![CDATA[
        title: Popular Dog Foods
        items:
          - Royal Canin
          - Purina Pro Plan
          - Hill's Science Diet
          - Blue Buffalo
        ]]>
        </masil-data>

        <masil-ai>
            <!-- AI-specific configuration -->
        </masil-ai>

        <masil-web>
            <!-- Web components -->
            <markdown name="hero">
                <![CDATA[
# [doc.title]
### Welcome to our Dog Database
*A comprehensive system for managing and analyzing dog data*
                ]]>
            </markdown>

            <markdown name="footer">
                <![CDATA[
                **Dog Database Footer**
                Created with ā¤ļø by Example Corp
                
                **[doc.company]** | Version [doc.version]
                ]]>
            </markdown>

            <markdown name="help">
                <![CDATA[
                ## Help for users
                ### Heading 2
                1. Copy the entire .minder file and paste it into ChatGPT
                2. Use commands like /random, /validate, or /help in ChatGPT
                3. Copy any new data back into the .minder file
                4. Refresh this page to see the updated visualization
                ]]>
            </markdown>

            <markdown name="dev-help">
                <![CDATA[
                MASIL (Markdown AI Structured Integration Language) works with HTML through web components.
                The .masil file contains structured data and markdown that gets rendered into HTML.
                Components like masil-markdown and masil-list handle the conversion automatically.
                ]]>
            </markdown>

            <markdown name="chat-content">
                <![CDATA[
                # ChatGPT Discussion Example

                **User**: Tell me about the dogs in the database.

                **Assistant**: I'd be happy to help! Looking at our database, we have several dogs:
                - Gracie: A spirited Jack Russell
                - Max: A confident German Shepherd
                - Bella: An intelligent Poodle
                - Charlie: A determined Husky

                Each has their own unique personality and characteristics. Would you like to know more about any specific dog?

                **User**: What's the average age of the dogs?

                **Assistant**: Let me calculate that for you...
                The average age of our dogs is 13.4 years.
                Note that Gracie's age (31) seems unusually high and might need validation.

                Would you like me to run a `/validate` command to check the data?
                ]]>
            </markdown>

            <!-- API Configuration -->
            <masil-data name="api-config" type="json">
                <![CDATA[
                {
                    "module": "faker.animal.dog",
                    "params": {
                        "count": 5
                    }
                }
                ]]>
            </masil-data>

            <!-- Chart Configuration -->
            <masil-data name="ui-config" type="json">
                <![CDATA[
                {
                    "display": {
                        "buttons": {
                            "randomBreed": {
                                "text": "Random Dog Breeds",
                                "class": "is-success"
                            }
                        },
                        "table": {
                            "sortable": true,
                            "striped": true,
                            "hoverable": true,
                            "columns": ["Name", "Age", "Color", "Breed", "Lifespan", "Temperament"]
                        },
                        "chart": {
                            "type": "line",
                            "colors": {
                                "age": "rgba(54, 162, 235, 0.5)",
                                "lifespan": "rgba(255, 99, 132, 0.5)"
                            },
                            "labels": {
                                "xAxis": "Dog Names",
                                "yAxis": "Years"
                            }
                        }
                    }
                }
                ]]>
            </masil-data>
        </masil-web>
    </masil>```
1 Like