mantago-intent-builder
v1.3.3
Published
MantaGO Intent Builder CLI - Interactive chatbot dialogue module creator
Maintainers
Readme
MantaGO Intent Builder CLI
Interactive CLI tool for creating chatbot dialogue modules (intents) on the MantaGO platform.
Supports LINE, Facebook, Instagram, WhatsApp, Threads.
Install
npm install -g mantago-intent-builderQuick Start
# First time: setup your credentials
mantago init
# Create an intent interactively
mantago create
# Preview only (save JSON, no API call)
mantago create --dry-runSetup
Run mantago init to configure your credentials. Config is saved locally at ~/.mantarc (not in your project).
? MantaGO API URL: https://mantago.cc/api
? Token (from browser cookie): ********
? Code (from browser cookie): abc123...How to get token & code:
- Login to MantaGO in your browser
- Open DevTools (F12) → Application → Cookies
- Copy the values of
tokenandcode
Note: Token expires after 3 days. Re-run
mantago initto refresh.
Commands
mantago init
Setup or update configuration.
mantago init # Default profile
mantago init --profile staging # Named profilemantago create
Create a new intent interactively.
mantago create # Full interactive flow
mantago create --bot-id <hashId> # Pre-select bot
mantago create --dry-run # JSON only, no API call
mantago create --skip-material # Skip material browsing
mantago create --profile staging # Use specific profileInteractive flow:
- Select bot — lists all bots you have access to
- Browse material — view existing content for inspiration
- Build intent — choose a template or build from scratch
- Preview — review the JSON payload
- Push or save — create via API or save as JSON file
Templates
| Template | Description |
|----------|-------------|
| collect_info | Collect user data (name, phone, email) via conversation flow |
| faq | FAQ auto-reply with quick reply buttons |
| product_rec | Product recommendation with image carousel |
| welcome | Welcome message with navigation menu |
| promotion | Promotion with image + text + CTA button |
Message Types
| Type | Description |
|------|-------------|
| text | Text message |
| quickReplies | Quick reply buttons |
| card | Card with image, title, buttons |
| image | Single image |
| imageCarousel | Scrollable image carousel |
| flex | LINE Flex Message (raw JSON) |
| confirmQuestion | Yes/No confirmation |
| choiceQuestion | Multiple choice question |
| video | Video message |
| location | Location with map |
mantago profile
Manage multiple profiles (e.g., production vs staging).
mantago profile list # List all profiles
mantago profile switch <name> # Switch active profile
mantago profile delete <name> # Delete a profileMaterial Browser
Browse existing content from your MantaGO account for inspiration:
- PO posts — Facebook, Instagram, Threads scheduled posts
- Post replies — Auto-reply configurations and content
- GAI knowledge base — AI FAQ, uploaded files, web pages
- AI suggestion items — Product/service recommendations
- Existing intents — Reference existing dialogue modules
Config
- Stored at
~/.mantarc(per user, not in project directory) - No secrets in source code
- Supports multiple profiles for different environments
License
MIT
