Getting Started
Create your first AI app, build a pipeline, expose it as an endpoint, and deploy it — all in under 10 minutes.
This guide walks you through the complete MechaMental workflow: from signing in to deploying a live AI endpoint.
Prerequisites
- Access to a MechaMental instance (contact your organization administrator if you don't have an account)
- At least one model configured at the organization level (your admin handles this)
Sign in to MechaMental
Navigate to your MechaMental instance URL and sign in with your credentials. After authentication, you'll land on the workspace dashboard.
Create a Workspace
If your organization doesn't have a workspace yet, create one:
- Go to Settings in the sidebar
- Under Workspaces, click Create Workspace
- Enter a name and optional description
- Click Create
Already have a workspace?
If your organization already has a workspace set up, select it from the workspace switcher in the top navigation bar and skip to the next step.
Create an App
Apps are the primary unit of work in MechaMental. Each app contains pipelines, endpoints, releases, and configuration.
- Click Apps in the sidebar
- Click the New App button
- In the Create New App dialog, fill in:
- App Name (required) — e.g., "Customer Support Agent"
- Description (optional) — a short summary of what this app does
- Click Create
You'll be taken to the app detail view, which has the following tabs: Dashboard, Namespaces, Augmentations, Environments, Tokens, Releases, and Settings.
Create an Augmentation Pipeline
Augmentations are the AI pipelines that process requests.
- Open the Augmentations tab in your app
- Click New Pipeline
- Enter a name (e.g., "Support Chat Pipeline")
- The pipeline editor opens with an empty canvas
Add a Stage and Inference Step
The pipeline editor displays stages horizontally from left to right, each rendered as a card. Steps within a stage are listed vertically.
- Click Add Stage on the canvas
- In the Create Stage dialog, enter a Name (e.g., "Main") and an optional Description
- Inside the new stage card, click Add Step
- From the step type dropdown, select inference
- Give the step a name (e.g., "chat_response")
- Select a model from the available logical models
Configure the Prompt
- Click on your inference step to open the step detail dialog
- Navigate to the Prompt tab (available only for inference steps)
- Write a system prompt using Jinja2 template syntax:
You are a helpful customer support assistant.
The user's question: {{ endpoint.payload.query }}
Respond concisely and professionally.Jinja2 Templates
Use {{ endpoint.payload.<field> }} to reference fields from the incoming request.
Use {{ steps.<step_name>.output }} to reference outputs from previous steps.
Create an Endpoint
Endpoints expose your pipeline as an HTTP API.
- In the pipeline editor top bar, click Create Endpoint
- Fill in the endpoint fields:
- Name — e.g., "Chat Endpoint"
- Path — e.g.,
/chat - Description — optional
- HTTP Method — typically
POST - Endpoint Type — select the appropriate type
- Optionally define an input schema to validate incoming payloads
- Save the endpoint
- After creation, generate an API key for authentication
Test via curl
Send a test request to your new endpoint:
curl -X POST https://api.mechamental.com/v1/trigger/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "How do I reset my password?"}'You should receive a response generated by the LLM using your configured prompt.
Create a Release and Deploy
When your pipeline is working correctly, package it for deployment:
- Go to the Releases tab in your app
- Click Create Release
- In the Create Release dialog, enter:
- Release Tag — e.g.,
v1.0.0 - Description — e.g., "Initial release of support chat"
- Release Tag — e.g.,
- Click Create — the release is created in the Ready state
- Click Deploy to Environment and select an environment (e.g., Production)
- The release moves to the Active state
Your pipeline is now live and serving traffic in the selected environment.