SleekFlow MCP by usefulapi

v1.4.1
io.usefulapi/sleekflow Checked 3 days ago Published 1 day ago

Read chats, contacts, teams and broadcasts; send messages and notes, and manage labels in SleekFlow.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sleekflow_list_contacts List contacts

List contacts with their profile fields, labels and lists. Filter by phone, email or name. SleekFlow API: GET /api/contact.

ParameterTypeDescription
emailstringFilter by email address.
first_namestringFilter by first name.
is_exact_matchbooleanMatch filters exactly instead of partially.
last_namestringFilter by last name.
last_updated_afterstringOnly contacts updated after this timestamp.
limitintegerItems to return (default 20, max 1000).
list_idintegerOnly contacts in this contact list id.
offsetintegerItems to skip (default 0).
phone_numberstringFilter by phone number (international format, no '+').

sleekflow_get_contact Get a contact

Get one contact by user profile id, with all profile fields. SleekFlow API: GET /api/contact/{userProfileId}.

ParameterTypeDescription
user_profile_id *stringThe contact's user profile id.

sleekflow_list_conversations List conversations

List inbox conversations with status, assignee, channel and last update. Good first call to find open or unread chats. A repeat call within 1 second can return HTTP 400 'Server busy': wait 1 second, then call again. SleekFlow API: GET /api/conversation/all.

ParameterTypeDescription
assigned_tostring'all' (default), 'unassigned', 'team', or a staff user id.
channelstringChannel name, for example whatsappcloudapi.
is_unreadbooleanOnly conversations with unread messages.
limitintegerItems to return (default 20, max 1000).
offsetintegerItems to skip (default 0).
order_bystringSort order, as the SleekFlow API accepts it.
phone_numberstringOnly conversations with this contact phone number.
statusstringConversation status filter, as the SleekFlow inbox uses it.
tagsstringTag filter, as the SleekFlow API accepts it.
team_idintegerTeam id, with assigned_to 'team'.
updated_afterstringOnly conversations updated after this timestamp.
updated_beforestringOnly conversations updated before this timestamp.

sleekflow_get_conversation Get a conversation

Get one conversation: contact, status, assignee and channel. SleekFlow API: GET /api/conversation/{conversationId}.

ParameterTypeDescription
conversation_id *stringThe conversation id.

sleekflow_list_messages List messages in a conversation

List the messages of one conversation. Filter by time with start_timestamp and end_timestamp (Unix seconds). SleekFlow API: GET /api/conversation/message/{conversationId}.

ParameterTypeDescription
conversation_id *stringThe conversation id.
channelstringOnly messages from this channel.
end_timestampintegerEnd of the time range, Unix seconds.
is_from_userbooleantrue: only customer messages. false: only staff messages.
limitintegerItems to return (default 20, max 1000).
offsetintegerItems to skip (default 0).
start_timestampintegerStart of the time range, Unix seconds, inclusive.

sleekflow_search_messages Search messages

Search messages across all conversations by keyword, channel or status. SleekFlow API: GET /api/conversation/message/search.

ParameterTypeDescription
channelstringChannel name filter.
contact_ownerstringStaff user id of the contact owner.
keywordsstringWords to search for.
limitintegerItems to return (default 20, max 1000).
offsetintegerItems to skip (default 0).
statusstringConversation status filter.
tagsstringTag filter.

sleekflow_list_channels List connected channels

List the messaging channels connected to the account (WhatsApp, Messenger, LINE, WeChat, web and others). SleekFlow API: GET /api/conversation/channel.

sleekflow_list_staff List staff

List staff members, optionally one team's members. SleekFlow API: GET /api/staffs.

ParameterTypeDescription
team_idintegerOnly staff in this team id.

sleekflow_get_staff Get a staff member

Get one staff member: name, role, status and teams. SleekFlow API: GET /api/staffs/{staffUserId}.

ParameterTypeDescription
staff_user_id *stringThe staff user id.

sleekflow_list_teams List teams

List all teams in the account. SleekFlow API: GET /api/teams.

sleekflow_get_team Get a team

Get one team and its members. SleekFlow API: GET /api/teams/{teamId}.

ParameterTypeDescription
team_id *stringThe team id.

sleekflow_list_labels List labels

List the contact labels (hashtags) and their colors. SleekFlow API: GET /api/labels.

sleekflow_list_contact_lists List contact lists

List contact lists (groups of contacts). SleekFlow API: GET /api/contact/list.

ParameterTypeDescription
limitintegerItems to return (default 20, max 1000).
offsetintegerItems to skip (default 0).

sleekflow_get_contact_list Get a contact list

Get one contact list and its details. SleekFlow API: GET /api/contact/list/{contactListId}.

ParameterTypeDescription
contact_list_id *stringThe contact list id.

sleekflow_list_broadcasts List broadcasts

List broadcast campaigns, optionally by name. SleekFlow API: GET /api/broadcasts.

ParameterTypeDescription
limitintegerItems to return (default 20, max 1000).
namestringFilter by broadcast name.
offsetintegerItems to skip (default 0).

sleekflow_get_broadcast Get a broadcast

Get one broadcast campaign and its details. SleekFlow API: GET /api/broadcasts/{broadcastId}.

ParameterTypeDescription
broadcast_id *stringThe broadcast id.

sleekflow_get_broadcast_recipients List broadcast recipients

List the recipients of one broadcast with their delivery status. SleekFlow API: GET /api/broadcasts/{broadcastId}/recipients.

ParameterTypeDescription
broadcast_id *stringThe broadcast id.
status *stringDelivery status to filter by, as the SleekFlow API names it (for example, sent or failed).

sleekflow_get_analytics Get conversation analytics

Get conversation analytics data for a date range. SleekFlow API: GET /api/analytic.

ParameterTypeDescription
end_date *stringDate, format yyyy-mm-dd.
start_date *stringDate, format yyyy-mm-dd.

sleekflow_send_message Send a message to a contact

Send a text message to a customer through a connected channel. The customer receives it: confirm the text and recipient first. Outside WhatsApp's 24-hour window only an approved template works. Phone numbers: international format, no '+'. SleekFlow API: POST /api/message/send/json.

ParameterTypeDescription
channel *stringChannel, for example whatsappcloudapi, whatsapp360dialog, facebook, line, wechat or web.
message_content *stringThe text to send.
facebook_receiver_idstringFacebook receiver id.
fromstringSender phone number (WhatsApp, SMS).
line_receiver_idstringLINE receiver id.
tostringReceiver phone number or WhatsApp BSUID (WhatsApp, SMS).
web_client_receiver_idstringWeb chat receiver id.
web_client_sender_idstringWeb chat sender id.
wechat_receiver_open_idstringWeChat receiver open id.

sleekflow_send_internal_note Add an internal note

Add an internal note to a conversation. The customer does not see it. Optional staff_user_id posts the note as that staff member. SleekFlow API: POST /api/message/send/note.

ParameterTypeDescription
conversation_id *stringThe conversation id.
message_content *stringThe note text.
staff_user_idstringStaff user id to post the note as.

sleekflow_add_or_update_contacts Add or update contacts

Create contacts, or update them when the phone number already exists. Send one or more contacts. SleekFlow API: POST /api/contact/addOrUpdate.

ParameterTypeDescription
contacts *arrayContacts to create or update.

sleekflow_update_contact Update a contact

Change one contact's name, phone or email, or add and remove labels. Fields you leave out stay as they are. SleekFlow API: POST /api/contact/update/{userProfileId}.

ParameterTypeDescription
user_profile_id *stringThe contact's user profile id.
add_labelsarrayLabel names to add.
emailstring
first_namestring
last_namestring
phone_numberstringNew phone number, international format, no '+'.
remove_labelsarrayLabel names to remove.

sleekflow_assign_conversation Assign a conversation

Assign a conversation to a staff member. Pass staff_id 'unassigned' to remove the assignee. SleekFlow API: POST /api/conversation/{conversationId}/assignee.

ParameterTypeDescription
conversation_id *stringThe conversation id.
staff_id *stringStaff user id, or 'unassigned'.

sleekflow_add_contacts_to_list Add contacts to a list

Add contacts to one contact list. SleekFlow API: POST /api/contact/list/{contactListId}/add.

ParameterTypeDescription
contact_list_id *stringThe contact list id.
user_profile_ids *arrayUser profile ids of the contacts to add.

sleekflow_create_labels Create labels

Create one or more contact labels with a color: blue, pink, yellow, green, red, purple, grey or cyan. SleekFlow API: POST /api/labels.

ParameterTypeDescription
labels *array