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 → Action
AI-generatedSummary
Start, stop, or restart a WA-AKG session.
Inputs
- targetSessionId (required) — The ID of the session to manage, e.g. "my_session_1"
- sessionAction (required) — The action to perform: "start", "stop", "restart" or "logout"
- additionalFields — Optional collection of extra parameters such as custom session ID, bot configuration or session settings, depending on the chosen action
Output shape
JSON response object from the WA-AKG session API (typically containing success status and updated session details)
The response may be empty on failure; success payload varies by action but usually returns the updated session object.
Examples
Example 1: Start a session with default settings
targetSessionId = "my_session_1", sessionAction = "start"
Example 2: Update session settings with custom bot config
targetSessionId = "my_session_1", sessionAction = "updateSettings", additionalFields = {"sessionSettings":[{"name":"prefix","value":"!"}]}
Example 3: Delete a session
targetSessionId = "my_session_1", sessionAction = "delete", additionalFields = {"newSessionId":"custom_id_123"}