flogpt

v1.1.2
io.github.VistaDigit/flogpt Checked 2 days ago Published 1 month ago

Operate 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:*`.

ParameterTypeDescription
isActivebooleanOnly widgets in this state.
limitnumberHow 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.

ParameterTypeDescription
limitnumberHow 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.

ParameterTypeDescription
callWidgetId *stringThe 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.

ParameterTypeDescription
callWidgetId *stringThe agent's id or callWidgetId.
isActivebooleanWhether the agent answers calls.
promptstringNew system prompt.
welcomeMessagestringNew 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.

ParameterTypeDescription
callWidgetId *stringWhich agent should place the call.
to *stringNumber 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.

ParameterTypeDescription
callWidgetIdstringOnly calls handled by this agent.
directionstringinbound or outbound.
fromstringISO date — calls on or after this.
limitnumberHow many to return. Defaults to 50, capped at 500.
searchstringMatch against the from number, to number or call id.
statusstringcompleted, failed, or active.
tostringISO 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'.

ParameterTypeDescription
callLogId *stringThe 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.

ParameterTypeDescription
callLogId *stringThe 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.

ParameterTypeDescription
limitnumberHow many to return. Defaults to 50.
searchstringFree-text match.
statusstringFilter by conversation status.
widgetIdstringOnly 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.

ParameterTypeDescription
conversationId *stringThe 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.

ParameterTypeDescription
content *stringThe document body.
knowledgeBaseId *stringWhich knowledge base to add to.
title *stringDocument 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.

ParameterTypeDescription
knowledgeBaseId *stringWhich 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.

ParameterTypeDescription
identifier *stringA phone number, email address, or name to search for.
limitnumberHow many to return. Defaults to 10.
statusstringOnly 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'.

ParameterTypeDescription
contactId *stringThe 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.

ParameterTypeDescription
attributesobjectAny additional custom attributes to store.
emailstringEmail address.
namestringContact's name.
phonestringPhone 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.

ParameterTypeDescription
assignedAgentIdstringOnly tickets assigned to this agent.
channelstringOnly tickets that arrived on this channel.
limitnumberHow many to return. Defaults to 50.
prioritystringlow, medium, high or urgent.
searchstringFree-text match.
statusstringunassigned, assigned, open, pending, resolved or closed.

flogpt_get_ticket

Returns a single ticket with its channel data, history and current state.

ParameterTypeDescription
ticketId *stringThe 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.

ParameterTypeDescription
channelData *objectChannel-specific payload — for example the originating message body, address or call id.
sourceChannel *stringWhere the ticket originated, e.g. email, chat, voice, manual.
subjectRef *stringThe ticket's subject line.
contactIdstringWhich contact the ticket is for, if known.
prioritystringlow, 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.

ParameterTypeDescription
action *stringaccept, open, hold, resume, resolve, close, reassign or archive.
ticketId *stringThe ticket to transition.
agentIdstringFor `reassign`: who to hand it to.
resolutionSummarystringFor `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.

ParameterTypeDescription
body *stringThe note text.
ticketId *stringWhich 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'.

ParameterTypeDescription
callWidgetIdstringOnly triggers that dial using this agent.
limitnumberHow 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.

ParameterTypeDescription
useCasestringNarrow 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.

ParameterTypeDescription
outboundTriggerId *stringWhich trigger to fire.
to *stringNumber to dial, E.164 format (+14155550123).
contactNamestringName to greet the person by.
dryRunbooleanResolve and render without placing the call. Do this first.
eventKeystringIdempotency key, so a retry does not double-dial.
metadataobjectMetadata for the trigger's own mapping rules.
payloadobjectPayload 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.

ParameterTypeDescription
enabled *booleantrue to enable, false to disable.
outboundTriggerId *stringWhich 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_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.

ParameterTypeDescription
dataCollectionId *stringWhich collection to read.
limitnumberHow many to return. Defaults to 100.
statusstringOnly rows with this status.
updatedSincestringISO-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.

ParameterTypeDescription
dataCollectionId *stringWhich collection to append to.
leads *arrayArray 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.

ParameterTypeDescription
fromstringISO date — start of the period.
tostringISO 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.

ParameterTypeDescription
fromstringISO date — start of the period.
includeArchivedbooleanCount archived tickets too.
tostringISO 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.

ParameterTypeDescription
method *stringGET, POST, PATCH or DELETE.
path *stringPath under /api/v1, starting with a slash.
bodyobjectJSON request body, for POST and PATCH.
queryobjectQuery string parameters.