productivity
Manychat CLI for AI Agents
Use the Manychat CLI from KosmoKrator to call Manychat tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Manychat CLI Setup
Manychat can be configured headlessly with `kosmokrator integrations:configure manychat`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure manychat --set api_key="$MANYCHAT_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor manychat --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_key | MANYCHAT_API_KEY | Secret secret | yes | Account API Key |
profile_api_key | MANYCHAT_PROFILE_API_KEY | Secret secret | no | Profile API Key |
url | MANYCHAT_URL | URL url | no | API Base URL |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call manychat.manychat_get_page_info '{}' --json kosmo integrations:manychat manychat_get_page_info '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs manychat --json
kosmo integrations:docs manychat.manychat_get_page_info --json
kosmo integrations:schema manychat.manychat_get_page_info --json
kosmo integrations:search "Manychat" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
manychat.manychat_get_page_info
Get Manychat page/account information.
read - Parameters
- none
kosmo integrations:call manychat.manychat_get_page_info '{}' --json kosmo integrations:manychat manychat_get_page_info '{}' --json manychat.manychat_get_current_user
Get the currently authenticated ManyChat user profile. Returns account details, plan info, and connected channels.
read - Parameters
- none
kosmo integrations:call manychat.manychat_get_current_user '{}' --json kosmo integrations:manychat manychat_get_current_user '{}' --json manychat.manychat_list_flows
List all flows (pages) in your ManyChat account. Returns flow IDs and names that can be used with get_flow.
read - Parameters
- none
kosmo integrations:call manychat.manychat_list_flows '{}' --json kosmo integrations:manychat manychat_list_flows '{}' --json manychat.manychat_get_flow
Get details of a specific ManyChat flow (page) by ID. Returns the full flow configuration including nodes and content.
read - Parameters
- page_id
kosmo integrations:call manychat.manychat_get_flow '{"page_id":"example_page_id"}' --json kosmo integrations:manychat manychat_get_flow '{"page_id":"example_page_id"}' --json manychat.manychat_list_tags
List all tags in your ManyChat account. Tags are used to segment subscribers and trigger automations.
read - Parameters
- none
kosmo integrations:call manychat.manychat_list_tags '{}' --json kosmo integrations:manychat manychat_list_tags '{}' --json manychat.manychat_create_tag
Create a new tag in ManyChat. Tags help segment subscribers for targeted messaging and automation.
write - Parameters
- name
kosmo integrations:call manychat.manychat_create_tag '{"name":"example_name"}' --json kosmo integrations:manychat manychat_create_tag '{"name":"example_name"}' --json manychat.manychat_remove_tag
Remove a bot tag by ID.
write - Parameters
- none
kosmo integrations:call manychat.manychat_remove_tag '{}' --json kosmo integrations:manychat manychat_remove_tag '{}' --json manychat.manychat_remove_tag_by_name
Remove a bot tag by name.
write - Parameters
- none
kosmo integrations:call manychat.manychat_remove_tag_by_name '{}' --json kosmo integrations:manychat manychat_remove_tag_by_name '{}' --json manychat.manychat_list_growth_tools
List growth tools.
read - Parameters
- none
kosmo integrations:call manychat.manychat_list_growth_tools '{}' --json kosmo integrations:manychat manychat_list_growth_tools '{}' --json manychat.manychat_list_custom_fields
List custom user fields.
read - Parameters
- none
kosmo integrations:call manychat.manychat_list_custom_fields '{}' --json kosmo integrations:manychat manychat_list_custom_fields '{}' --json manychat.manychat_create_custom_field
Create a custom user field.
write - Parameters
- none
kosmo integrations:call manychat.manychat_create_custom_field '{}' --json kosmo integrations:manychat manychat_create_custom_field '{}' --json manychat.manychat_list_bot_fields
List bot fields.
read - Parameters
- none
kosmo integrations:call manychat.manychat_list_bot_fields '{}' --json kosmo integrations:manychat manychat_list_bot_fields '{}' --json manychat.manychat_set_bot_field
Set a bot field by ID.
write - Parameters
- none
kosmo integrations:call manychat.manychat_set_bot_field '{}' --json kosmo integrations:manychat manychat_set_bot_field '{}' --json manychat.manychat_send_message
Send a message via ManyChat to a subscriber on Instagram, Messenger, WhatsApp, or SMS. Requires a subscriber ID and message content.
write - Parameters
- subscriber_id, message, message_type
kosmo integrations:call manychat.manychat_send_message '{"subscriber_id":"example_subscriber_id","message":"example_message","message_type":"example_message_type"}' --json kosmo integrations:manychat manychat_send_message '{"subscriber_id":"example_subscriber_id","message":"example_message","message_type":"example_message_type"}' --json manychat.manychat_send_content
Send content to a subscriber.
write - Parameters
- none
kosmo integrations:call manychat.manychat_send_content '{}' --json kosmo integrations:manychat manychat_send_content '{}' --json manychat.manychat_send_flow
Send a flow to a subscriber.
write - Parameters
- none
kosmo integrations:call manychat.manychat_send_flow '{}' --json kosmo integrations:manychat manychat_send_flow '{}' --json manychat.manychat_get_subscriber_info
Get subscriber info by ID.
read - Parameters
- none
kosmo integrations:call manychat.manychat_get_subscriber_info '{}' --json kosmo integrations:manychat manychat_get_subscriber_info '{}' --json manychat.manychat_find_subscriber_by_name
Find subscribers by name.
read - Parameters
- none
kosmo integrations:call manychat.manychat_find_subscriber_by_name '{}' --json kosmo integrations:manychat manychat_find_subscriber_by_name '{}' --json manychat.manychat_add_subscriber_tag
Add a tag to a subscriber.
write - Parameters
- none
kosmo integrations:call manychat.manychat_add_subscriber_tag '{}' --json kosmo integrations:manychat manychat_add_subscriber_tag '{}' --json manychat.manychat_remove_subscriber_tag
Remove a tag from a subscriber.
write - Parameters
- none
kosmo integrations:call manychat.manychat_remove_subscriber_tag '{}' --json kosmo integrations:manychat manychat_remove_subscriber_tag '{}' --json manychat.manychat_set_subscriber_custom_field
Set one subscriber custom field.
write - Parameters
- none
kosmo integrations:call manychat.manychat_set_subscriber_custom_field '{}' --json kosmo integrations:manychat manychat_set_subscriber_custom_field '{}' --json manychat.manychat_create_subscriber
Create a subscriber.
write - Parameters
- none
kosmo integrations:call manychat.manychat_create_subscriber '{}' --json kosmo integrations:manychat manychat_create_subscriber '{}' --json manychat.manychat_update_subscriber
Update a subscriber.
write - Parameters
- none
kosmo integrations:call manychat.manychat_update_subscriber '{}' --json kosmo integrations:manychat manychat_update_subscriber '{}' --json manychat.manychat_api_get
Call a documented GET endpoint.
read - Parameters
- none
kosmo integrations:call manychat.manychat_api_get '{}' --json kosmo integrations:manychat manychat_api_get '{}' --json manychat.manychat_api_post
Call a documented POST endpoint.
write - Parameters
- none
kosmo integrations:call manychat.manychat_api_post '{}' --json kosmo integrations:manychat manychat_api_post '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
manychat.manychat_get_page_info 0 parameters
kosmo integrations:schema manychat.manychat_get_page_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_get_current_user 0 parameters
kosmo integrations:schema manychat.manychat_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_list_flows 0 parameters
kosmo integrations:schema manychat.manychat_list_flows --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_get_flow 1 parameters
kosmo integrations:schema manychat.manychat_get_flow --json | Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | yes | Flow namespace or ID to find in the getFlows response. |
manychat.manychat_list_tags 0 parameters
kosmo integrations:schema manychat.manychat_list_tags --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_create_tag 1 parameters
kosmo integrations:schema manychat.manychat_create_tag --json | Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | The name for the new tag (e.g., "VIP Customer", "Newsletter Subscriber"). |
manychat.manychat_remove_tag 0 parameters
kosmo integrations:schema manychat.manychat_remove_tag --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_remove_tag_by_name 0 parameters
kosmo integrations:schema manychat.manychat_remove_tag_by_name --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_list_growth_tools 0 parameters
kosmo integrations:schema manychat.manychat_list_growth_tools --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_list_custom_fields 0 parameters
kosmo integrations:schema manychat.manychat_list_custom_fields --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_create_custom_field 0 parameters
kosmo integrations:schema manychat.manychat_create_custom_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_list_bot_fields 0 parameters
kosmo integrations:schema manychat.manychat_list_bot_fields --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_set_bot_field 0 parameters
kosmo integrations:schema manychat.manychat_set_bot_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_send_message 3 parameters
kosmo integrations:schema manychat.manychat_send_message --json | Parameter | Type | Required | Description |
|---|---|---|---|
subscriber_id | string | yes | The ManyChat subscriber ID to send the message to. |
message | object | yes | The message payload to send. Can include text, buttons, cards, or other supported message types. |
message_type | string | no | The messaging channel: "instagram", "messenger", "whatsapp", or "sms". Defaults to the subscriber's primary channel. |
manychat.manychat_send_content 0 parameters
kosmo integrations:schema manychat.manychat_send_content --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_send_flow 0 parameters
kosmo integrations:schema manychat.manychat_send_flow --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_get_subscriber_info 0 parameters
kosmo integrations:schema manychat.manychat_get_subscriber_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_find_subscriber_by_name 0 parameters
kosmo integrations:schema manychat.manychat_find_subscriber_by_name --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_add_subscriber_tag 0 parameters
kosmo integrations:schema manychat.manychat_add_subscriber_tag --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_remove_subscriber_tag 0 parameters
kosmo integrations:schema manychat.manychat_remove_subscriber_tag --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_set_subscriber_custom_field 0 parameters
kosmo integrations:schema manychat.manychat_set_subscriber_custom_field --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_create_subscriber 0 parameters
kosmo integrations:schema manychat.manychat_create_subscriber --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_update_subscriber 0 parameters
kosmo integrations:schema manychat.manychat_update_subscriber --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_api_get 0 parameters
kosmo integrations:schema manychat.manychat_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
manychat.manychat_api_post 0 parameters
kosmo integrations:schema manychat.manychat_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.