messaging
Crisp CLI for Shell Scripts
Use the Crisp CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API key auth
Crisp CLI for Shell Scripts
Call integration functions from shell scripts with stable JSON input and output.
Use shell scripts for small local automations that need one or more integration calls. The Crisp CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Crisp CLI for Shell Scripts
kosmokrator integrations:configure crisp --set api_key="$CRISP_API_KEY" --set website_id="$CRISP_WEBSITE_ID" --enable --read allow --write ask --json
kosmo integrations:call crisp.crisp_list_conversations '{"page":1,"per_page":1}' --json Discovery Before Execution
Agents and scripts can inspect Crisp docs and schemas before choosing a function.
kosmo integrations:docs crisp --json
kosmo integrations:docs crisp.crisp_list_conversations --json
kosmo integrations:schema crisp.crisp_list_conversations --json
kosmo integrations:search "Crisp" --json
kosmo integrations:list --json Useful Crisp CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
crisp.crisp_list_conversations | Read | page, per_page | List chat conversations from Crisp. Returns conversation sessions with status, participant info, and last message preview. Supports pagination. |
crisp.crisp_get_conversation | Read | conversation_id | Get details and messages of a specific Crisp conversation. Returns the full message thread including sender info, timestamps, and message content. |
crisp.crisp_send_message | Write | conversation_id, text, type, from | Send a message in a Crisp conversation. Posts as an operator by default. Use the "type" parameter to send text, notes, or file messages. |
crisp.crisp_list_contacts | Read | page, per_page | List contacts from Crisp. Returns contact profiles with email, name, and custom data. Supports pagination. |
crisp.crisp_get_contact | Read | contact_id | Get details of a specific Crisp contact. Returns profile info, custom data, segments, and more. |
crisp.crisp_list_campaigns | Read | page, per_page | List marketing campaigns from Crisp. Returns campaigns with status, template details, and delivery statistics. Supports pagination. |
crisp.crisp_get_current_user | Read | none | Get the currently authenticated Crisp user profile. Useful for verifying credentials and identifying the connected operator. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.