flogpt
v1.1.2Operate a floGPT workspace: AI voice agents, call transcripts, CRM, knowledge and outbound calls.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
flogpt_whoami
Returns the organization id this key is scoped to and the exact list of scopes it carries. Call this first when unsure whether a key can perform an action — a missing scope is the most common cause of a refused request, and this is the only endpoint that cannot itself fail on one.
flogpt_get_organization
Returns the workspace's own settings — name, timezone, locale defaults and the configuration allowlist exposed to the API. Billing, usage, ownership and membership are not reachable here at any scope.
flogpt_list_chat_widgets
Lists embeddable chat widgets with their id, name, attached workflow and knowledge base, and whether they are active. Note the scope family is `widgets:*`, not `chat_widgets:*`.
| Parameter | Type | Description |
|---|---|---|
isActive | boolean | Only widgets in this state. |
limit | number | How many to return. Defaults to 50. |
flogpt_list_call_widgets
Lists AI voice agents (call widgets) with their id, name, language, direction and whether they are active. Use the returned id for any other call-agent tool.
| Parameter | Type | Description |
|---|---|---|
limit | number | How many to return. Defaults to 50. |
flogpt_get_call_widget
Returns the complete configuration of one voice agent: prompt, welcome message, call script, language, voice, transfer settings and runtime. Accepts either the Mongo id or the `callWidgetId` uuid.
| Parameter | Type | Description |
|---|---|---|
callWidgetId * | string | The agent's id or callWidgetId. |
flogpt_update_call_widget
Updates a voice agent. IMPORTANT: this edits the draft. If the agent has a pinned production version, callers keep hearing that version until someone publishes and promotes — this tool does not change what is live on its own.
| Parameter | Type | Description |
|---|---|---|
callWidgetId * | string | The agent's id or callWidgetId. |
isActive | boolean | Whether the agent answers calls. |
prompt | string | New system prompt. |
welcomeMessage | string | New spoken greeting. |
flogpt_test_call_widget
Dials a number so a human can hear the agent as callers do. This places a real outbound call and consumes call minutes, so confirm the number with the user before calling it. `to` must be E.164, e.g. +14155550123.
| Parameter | Type | Description |
|---|---|---|
callWidgetId * | string | Which agent should place the call. |
to * | string | Number to dial, E.164 format (+14155550123). |
flogpt_list_call_logs
Returns call history: who called, when, how long, the outcome, sentiment and summary. Filter by agent, direction, status, or a date range. Use this to answer questions about what happened on calls.
| Parameter | Type | Description |
|---|---|---|
callWidgetId | string | Only calls handled by this agent. |
direction | string | inbound or outbound. |
from | string | ISO date — calls on or after this. |
limit | number | How many to return. Defaults to 50, capped at 500. |
search | string | Match against the from number, to number or call id. |
status | string | completed, failed, or active. |
to | string | ISO date — calls on or before this. |
flogpt_get_call_log
Returns a single call with the complete turn-by-turn transcript, extracted fields, sentiment, summary and any tools the agent used mid-call. This is the tool for 'what exactly was said'.
| Parameter | Type | Description |
|---|---|---|
callLogId * | string | The call's id. |
flogpt_reinitiate_call
Places the call again. Only works for calls that originated from a campaign and whose contact still exists — anything else returns 422 with a reason (`not_eligible`, `not_campaign_originated`, `contact_not_found`). This dials a real person, so confirm before retrying in bulk.
| Parameter | Type | Description |
|---|---|---|
callLogId * | string | The call to retry. |
flogpt_list_conversations
Returns chat conversations with their widget, status and participant. This is the chat-side counterpart to flogpt_list_call_logs — use it for questions about what visitors asked in chat.
| Parameter | Type | Description |
|---|---|---|
limit | number | How many to return. Defaults to 50. |
search | string | Free-text match. |
status | string | Filter by conversation status. |
widgetId | string | Only conversations from this chat widget. |
flogpt_get_conversation_messages
Returns every message in a conversation in order, with sender and timestamp. The chat equivalent of a call transcript.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | The conversation's id. |
flogpt_list_knowledge_bases
Lists the knowledge bases in this workspace with their document and source counts.
flogpt_add_knowledge_document
Adds a text document so agents can answer from it. A document is only searchable once it has been embedded, which is not instant — if answers do not improve, check the knowledge base's embedding status rather than adding the document again.
| Parameter | Type | Description |
|---|---|---|
content * | string | The document body. |
knowledgeBaseId * | string | Which knowledge base to add to. |
title * | string | Document title. |
flogpt_sync_knowledge_base
Triggers a re-sync so newly added or edited documents become searchable. Use this when documents exist but agents are not answering from them.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Which knowledge base to sync. |
flogpt_find_contact
Searches contacts across the identifiers floGPT tracks — phone, email, and the social handles it links. Returns matching contacts with their attributes. Use the returned id with flogpt_get_contact_activity or the ticket tools.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | A phone number, email address, or name to search for. |
limit | number | How many to return. Defaults to 10. |
status | string | Only contacts with this status. |
flogpt_get_contact_activity
Returns everything floGPT has recorded for a contact across channels — calls, chats, tickets and campaign touches — in one timeline. This is the tool for 'what has happened with this customer'.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact's id. |
flogpt_upsert_contact
Creates a contact, or updates the existing one if an identifier already matches — floGPT links on phone and email, so passing either will merge rather than duplicate.
| Parameter | Type | Description |
|---|---|---|
attributes | object | Any additional custom attributes to store. |
email | string | Email address. |
name | string | Contact's name. |
phone | string | Phone number, E.164 preferred. |
flogpt_list_tickets
Lists support tickets with status, priority, channel and assignee. Filter by status to find what is open, or by assignee to see one agent's queue. Statuses are unassigned, assigned, open, pending, resolved and closed.
| Parameter | Type | Description |
|---|---|---|
assignedAgentId | string | Only tickets assigned to this agent. |
channel | string | Only tickets that arrived on this channel. |
limit | number | How many to return. Defaults to 50. |
priority | string | low, medium, high or urgent. |
search | string | Free-text match. |
status | string | unassigned, assigned, open, pending, resolved or closed. |
flogpt_get_ticket
Returns a single ticket with its channel data, history and current state.
| Parameter | Type | Description |
|---|---|---|
ticketId * | string | The ticket's id. |
flogpt_create_ticket
Creates a support ticket. `sourceChannel` says where it came from, `subjectRef` is the human-readable subject line, and `channelData` carries the channel-specific payload — all three are required by the API. Attach it to a contact with `contactId` where one is known.
| Parameter | Type | Description |
|---|---|---|
channelData * | object | Channel-specific payload — for example the originating message body, address or call id. |
sourceChannel * | string | Where the ticket originated, e.g. email, chat, voice, manual. |
subjectRef * | string | The ticket's subject line. |
contactId | string | Which contact the ticket is for, if known. |
priority | string | low, medium, high or urgent. |
flogpt_transition_ticket
Applies one state transition. `accept` assigns it to the caller, `open` starts work, `hold` parks it as pending, `resume` returns it to open, `resolve` closes it out (pass `resolutionSummary`), `close` closes without resolution, `reassign` hands it to another agent (pass `agentId`), and `archive` removes it from the queue. One tool rather than eight because the model is choosing a verb, not an endpoint.
| Parameter | Type | Description |
|---|---|---|
action * | string | accept, open, hold, resume, resolve, close, reassign or archive. |
ticketId * | string | The ticket to transition. |
agentId | string | For `reassign`: who to hand it to. |
resolutionSummary | string | For `resolve`: what the resolution was. |
flogpt_add_ticket_note
Appends a note visible to the team but never to the customer. Use this to record what was investigated before transitioning a ticket.
| Parameter | Type | Description |
|---|---|---|
body * | string | The note text. |
ticketId * | string | Which ticket to annotate. |
flogpt_list_outbound_triggers
Lists the configured triggers that fire outbound calls, with their source type, target agent and whether they are enabled. Note floGPT's outbound automation is modelled as triggers rather than campaigns — this is the tool for 'what fires calls here'.
| Parameter | Type | Description |
|---|---|---|
callWidgetId | string | Only triggers that dial using this agent. |
limit | number | How many to return. Defaults to 50. |
flogpt_list_outbound_trigger_templates
Returns the catalogue of pre-built trigger shapes (missed call follow-up, lead capture, appointment reminder and so on) with the configuration each expects. Read this before creating a trigger so the config matches a known template.
| Parameter | Type | Description |
|---|---|---|
useCase | string | Narrow to one use case. |
flogpt_fire_outbound_trigger
Runs a trigger for a single target. PASS `dryRun: true` FIRST — it resolves the trigger, renders the call and reports what would happen without dialling anyone. Without it this places a real call to a real person. `to` must be E.164.
| Parameter | Type | Description |
|---|---|---|
outboundTriggerId * | string | Which trigger to fire. |
to * | string | Number to dial, E.164 format (+14155550123). |
contactName | string | Name to greet the person by. |
dryRun | boolean | Resolve and render without placing the call. Do this first. |
eventKey | string | Idempotency key, so a retry does not double-dial. |
metadata | object | Metadata for the trigger's own mapping rules. |
payload | object | Payload merged into the call's prompt variables. |
flogpt_set_outbound_trigger_enabled
Turns a trigger on or off. Disabling is the fastest way to stop an automation that is misfiring — it takes effect immediately and leaves the configuration intact.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true to enable, false to disable. |
outboundTriggerId * | string | Which trigger to change. |
flogpt_list_phone_numbers
Lists the workspace's assigned numbers and which agent handles inbound and outbound on each. Note this reads under `call_widgets:read`, not `phone_numbers:read` — the latter governs provisioning requests for new numbers.
flogpt_link_phone_number
Links a number to an agent so that agent answers its calls. This changes what real callers hear immediately. Linking lives on `call_widgets:write` because it changes the agent's reachability, not the number's provisioning.
| Parameter | Type | Description |
|---|---|---|
callWidgetId * | string | Which agent should answer it. |
phoneNumberId * | string | Which number to link. |
flogpt_list_data_collections
Lists typed datasets in the workspace with their columns and row counts. These back campaigns, lead lists and form captures. Read the columns before writing rows.
flogpt_list_data_collection_leads
Returns the leads in a collection, filterable by status or by when they last changed. Use `updatedSince` to poll for new rows rather than re-reading the whole collection.
| Parameter | Type | Description |
|---|---|---|
dataCollectionId * | string | Which collection to read. |
limit | number | How many to return. Defaults to 100. |
status | string | Only rows with this status. |
updatedSince | string | ISO-8601 timestamp — only rows changed since then. |
flogpt_add_data_collection_leads
Appends leads. `leads` is an array of objects whose keys must match the collection's column names exactly — list the collection first if unsure. Up to 1000 rows per call.
| Parameter | Type | Description |
|---|---|---|
dataCollectionId * | string | Which collection to append to. |
leads * | array | Array of row objects. Keys must match the collection's column names. Max 1000. |
flogpt_get_analytics
Returns aggregate metrics: call and chat volume, durations, outcomes, sentiment breakdown. Use this for 'how are we doing' questions rather than listing calls and counting them yourself — it is one request instead of hundreds and the totals are authoritative.
| Parameter | Type | Description |
|---|---|---|
from | string | ISO date — start of the period. |
to | string | ISO date — end of the period. |
flogpt_get_crm_analytics
Returns ticket and contact metrics — volumes, resolution times and channel mix. The CRM counterpart to flogpt_get_analytics.
| Parameter | Type | Description |
|---|---|---|
from | string | ISO date — start of the period. |
includeArchived | boolean | Count archived tickets too. |
to | string | ISO date — end of the period. |
flogpt_list_webhook_subscriptions
Lists where floGPT is configured to POST events, with the event types each subscription receives and its delivery health. The subscribable event list is at GET /hooks/events.
flogpt_request
The escape hatch for the ~90 endpoints that do not have a dedicated tool. Pass a method and a path under /api/v1 (for example GET /team, or GET /hooks/events). Prefer a dedicated tool where one exists — they carry better descriptions and safer defaults. The full endpoint list is at GET /api/v1/openapi.json.
| Parameter | Type | Description |
|---|---|---|
method * | string | GET, POST, PATCH or DELETE. |
path * | string | Path under /api/v1, starting with a slash. |
body | object | JSON request body, for POST and PATCH. |
query | object | Query string parameters. |