Build AI-powered business automation with 8x less code than Python using .mcn files. The only AI-first scripting language that works both standalone and embedded.
Built-in AI functions with context awareness. No complex API setup required.
Reduce cognitive load with domain-specific syntax for business automation.
Async task execution with simple await syntax for workflow automation.
Database operations with batch support and automatic connection management.
Modular functionality with built-in packages for common business operations.
Serve MSL scripts as REST APIs with a single command.
MSL (Macincode Scripting Language) isn't competing with Python—it's abstracting Python for specific use cases, just like SQL abstracts database operations. Using .mcn files, it's the only AI-first scripting language that works both standalone and embedded.
import requests
import sqlite3
import openai
from datetime import datetime
def create_user_workflow(name, email):
# Database setup
conn = sqlite3.connect('app.db')
cursor = conn.cursor()
# Insert user
cursor.execute("INSERT INTO users (name, email) VALUES (?, ?)", (name, email))
conn.commit()
# Send notification
response = requests.post('https://api.slack.com/webhook',
json={'text': f'New user: {name}'})
# AI analysis
client = openai.OpenAI()
ai_response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": f"Analyze user: {name}"}]
)
return ai_response.choices[0].message.content
var name = "Alice"
var email = "alice@company.com"
query("INSERT INTO users (name, email) VALUES (?, ?)", (name, email))
trigger("https://api.slack.com/webhook", {"text": "New user: " + name})
var analysis = ai("Analyze user: " + name)
use "db"
var user = {"name": "John", "age": 25}
query("INSERT INTO users VALUES (?, ?)", (user.name, user.age))
var users = query("SELECT * FROM users WHERE age > ?", (18))
log "Found " + users.length + " adult users"
use "ai"
var feedback = "The product is amazing but shipping was slow"
var sentiment = analyze_sentiment(feedback)
if sentiment.score > 0.5
var response = ai("Generate positive customer response")
trigger("https://crm.com/respond", {"message": response})
task "email" "trigger" "https://mail.api.com/send" {"to": "user@example.com"}
task "log" "query" "INSERT INTO logs VALUES (?)" ("Action completed")
task "ai" "ai" "Summarize today's activities"
var results = await "email" "log" "ai"
log "All tasks completed: " + results
var customer = request_data
query("INSERT INTO customers VALUES (?)", (customer.name))
trigger("https://crm.com/api/create", customer)
var welcome = ai("Create welcome email for " + customer.name)
trigger("https://mail.com/send", {"to": customer.email, "body": welcome})
Start simple with backend scripts or use the interactive web playground. The only AI-first scripting language that works both standalone and embedded.