Skip to main content

Overview

The lua channels command provides an interactive interface for managing your agent’s communication channels - connect to WhatsApp, Facebook, Email, Slack, Instagram, and more.

Non-Interactive Mode

Note: Creating and configuring channels requires interactive mode due to complex multi-step input for tokens, IDs, and other credentials.

List Channels

View all connected channels

Link New Channel

Connect WhatsApp, Facebook, Slack, Email

Channel Details

View configuration and status

Admin Dashboard

Open visual interface

Currently Supported Channels

Lua currently supports 6 communication channels:
Email IntegrationRespond to emails automatically. Two modes available:Generated Inbox Requirements:
  • Display Name
Existing Email Requirements:
  • Display Name
  • Sender Email Address
  • Email forwarding setup
Features:
  • Automated email responses
  • Custom sender identity
  • Professional communication
  • Generated inbox (no forwarding needed)
CLI Support: ✅ Yes
🚀 More channels coming soon! SMS, Microsoft Teams, Discord, Telegram, LinkedIn, and WeChat are in active development.

Interactive Flow

1

Launch Command

Automatically loads agent from lua.skill.yaml
2

Choose Action

3

Complete Action

Follow the prompts based on your selection

List Channels

View all configured channels with detailed information:

Channel Details View

WhatsApp Setup

Next Steps for WhatsApp:
  1. Configure webhook in Meta Business Suite
  2. Copy webhook URL from output
  3. Set webhook URL in Meta dashboard
  4. Verify webhook connection

Facebook Setup

Email Setup

Email channels support two modes: generated inbox (Lua creates an address) and existing email (forward from your own address).

Slack Private Setup

Slack Public Setup

Open Admin Dashboard

Opens the admin interface where you can:
  • Manage channels visually
  • Configure OAuth flows
  • View channel analytics
  • Test channel connections
  • Monitor message delivery

Use Cases

Multi-Channel Agent

Channel Migration

Team Collaboration

Channel-Specific Features

WhatsApp

Phone Number Requirements:
  • Must be registered with WhatsApp Business
  • Verified with Meta Business Suite
  • Has active WABA (Business Account)
Status Indicators:
  • CONNECTED: Ready to send/receive
  • DISCONNECTED: Needs reconnection
  • PENDING: Setup in progress
Quality Ratings:
  • GREEN: High quality, good delivery
  • YELLOW: Medium quality, some issues
  • RED: Low quality, delivery problems

Facebook

Page Requirements:
  • Business or Creator page (not personal profile)
  • Page access token with messaging permissions
  • Page must be published
Capabilities:
  • Respond to page messages
  • Handle conversation threads
  • Access messenger features

Email

Two modes available:
  • Generated inbox - Lua creates an email address; no forwarding setup needed
  • Existing email - Uses your own address; requires email forwarding
Forwarding Setup (existing email mode only):
  • Must forward to the provided Lua address
  • Can use email rules/filters
  • Test after setup
Response Behavior:
  • Agent replies to incoming emails
  • Uses configured display name
  • Threading supported
  • Attachments handled

Slack

Private (Bot Token):
  • Simple bot installation
  • Direct messages
  • Channel mentions
  • App home tab
Public (OAuth App):
  • Users install your app
  • Workspace-wide presence
  • OAuth consent flow
  • More complex setup

Troubleshooting

Error:
Solution:
Error:
Solution:
Error:
Solution:
  • List channels to see existing
  • Use different number/account
  • Remove old channel first (via admin)
Error:
Solution:
  • Verify token is correct
  • Check token hasn’t expired
  • Regenerate token from platform
  • Try again with new token
Problem: Agent not responding to emailsCheck:
  1. Email forwarding is configured
  2. Forward address is correct
  3. Emails are being forwarded
  4. Test by sending email
  5. Check admin dashboard for errors

Best Practices

Common Workflows

Initial Setup

Add New Channel

Channel Audit

Integration with Admin Dashboard

The CLI command and admin dashboard work together:
Use CLI when:
  • Setting up via terminal
  • Scripting channel creation
  • Quick channel listing
  • During development workflow

Channel Requirements by Platform

WhatsApp Business

Before you start:
  1. Register with Meta Business Suite
  2. Create WhatsApp Business Account
  3. Add phone number
  4. Get API access
  5. Obtain access token
Then:

Facebook Messenger

Before you start:
  1. Create Facebook Business Page
  2. Create Facebook App
  3. Add Messenger product
  4. Get page access token
Then:

Email

Generated inbox — before you start:
  1. Choose a display name for your agent
Then:
Existing email — before you start:
  1. Have email address ready
  2. Access to email provider settings
  3. Ability to configure forwarding
Then:

Slack

Private (Simple):
  1. Create Slack app
  2. Add bot token scopes
  3. Install to workspace
  4. Copy bot token
Public (OAuth):
  1. Create Slack app
  2. Configure OAuth
  3. Set redirect URLs
  4. Get credentials

Security

Token Security:
  • All tokens are masked during input
  • Never logged or displayed
  • Stored securely server-side
  • Use environment-specific tokens
Best practices:
  • Use test accounts in development
  • Production tokens in production only
  • Rotate tokens regularly
  • Revoke compromised tokens immediately

Next Steps

Admin Dashboard

Visual channel management

Chat Widget

Add website chat channel

Test Your Agent

Test agent responses

Production Monitor

Monitor live channels