Actions98
- Auto Reply Actions
- Chat Actions
- Contact Actions
- Group Actions
- Label Actions
- Message Actions
- Media Actions
- Notification Actions
- Profile Actions
- Scheduler Actions
- Session Actions
- Status Update Actions
- System Actions
- User Actions
- Webhook Actions
Session → Create
AI-generatedSummary
Create a new WhatsApp session
Inputs
- sessionName (required) — A readable name for the new session. E.g. "Customer Service Bot"
- newSessionId — Manually override the generated Session ID. E.g. "custom_id_123"
- botConfig — Key-Value pairs for bot configuration
- sessionSettings — Key-Value pairs for session settings
Output shape
a single session record
Contains the generated session ID and any provided custom ID, plus metadata about the created session.
Examples
Example 1: Create a session with a custom ID
sessionName: "Customer Service Bot", newSessionId: "custom_001"
Example 2: Create a session and set bot configuration
sessionName: "Support Bot", botConfig: [{name: "prefix", value: "!"}, {name: "retry", value: "true"}]
Example 3: Create a session and add session settings
sessionName: "Alert Bot", sessionSettings: [{name: "rejectCall", value: "true"}]