Repository navigation
Releases
Releases · Rogue85/kvitok
v0.6.1
Fixed
- An agent's proposal of an action that operators cannot start by hand (one whose
audienceis onlyagent) no longer shows "Edit": the button opened a form that said the action was unavailable. The proposal can still be approved or rejected.
v0.6.0
Added
- A backend can publish directories for list fields: coffee shops, cities, products, plans. It declares them in
option_setsof its manifest and serves each atGET /option-sets/{name}({ options: [{ value, label, group?, description?, active? }] }with anETag); an unknown one is404 unknown_option_set. The change is additive,protocol_versionstays 1, and the conformance suite checks the new endpoint. See "Option sets" indocs/protocol.md. - A list field can take its options from such a directory: in Settings → Fields switch "Options" to "From an integration" and pick the directory. The options follow the backend with the manifest sync: new ones appear, renamed ones change, and ones the backend drops or marks inactive are archived, so old tickets keep them but nobody can choose them anymore. A failed sync keeps the previous options. Removing the integration leaves the field its options as its own. Settings → Integrations lists the directories, their size, sync errors and the fields that use them. Options typed by hand can be archived too, and a list can now have up to 1,000 options that can be chosen (it was 500), plus archived ones.
- The agent picks the option the conversation or the data points to, and prefers an id from the backend's data (a receipt's
place_id) to the customer's wording. When several options fit and nothing decides, it offers them as candidates: the operator picks one with a click in the agent's message, and candidates are never applied automatically. When none fits, the field stays empty. A value outside the options goes back to the agent once and is dropped after that, without failing the run. Up to 200 options are listed in the prompt; larger lists are searched with a built-infind_field_optionstool, and the field's "How the agent sees the options" setting can force either way. - List fields with many options, groups or a directory get a searchable picker grouped by
group. - The agent evaluation checks fields from directories: scenarios expect a value, an empty field or candidates (
expect.option_sets), and the report counts correct answers and false fills. The coffee shop simulator publishes its coffee shops as theplacesdirectory, returnsplace_idin receipts and orders, and has new scenarios on ambiguous, unknown and closed coffee shops. - MCP:
create_fieldandupdate_fieldtakeoptionSetIdandagentOptionsMode;describe_workspaceandget_integrationlist the directories, and the fields reference explains them. - For the API:
optionSetandagentOptionsModein fields,optionSetsin integrations and in the sync result; a field suggestion may carrycandidateswith the reasonambiguous, and accepting it takes the chosenvalue. - Operators can do an action by hand when the agent proposed none or proposed it wrong. "Action" in the input at the bottom of the ticket lists what the customer's integrations allow; the form is built from the action's parameters, the backend checks them at once, and the action appears in the ticket as a card with "Execute", "Edit" and "Cancel", so it can be looked over before anything happens. "Edit" on an agent's proposal opens the same form with its parameters. Executing a manual action rejects every other pending proposal of the ticket, after a confirmation that lists them; if a colleague approves one of them while the confirmation is open, the execution stops and asks to check the ticket. With "Update the reply after execution" (on by default) the agent rewrites the draft to match what was done. The agent sees manual actions and does not propose them again.
- Analytics → "Executed actions" shows how many executed actions the agent proposed and how many operators did by hand: instead of the agent's proposal, or where the agent could have proposed one and did not. MCP
quality_reporthas the same underactions.manualwith example tickets, andreplaylists the actions operators executed by hand after the replayed run (actions.operatorManual), so a configuration change can be checked against them. - For backends: an action may declare
audience:["operator"]makes it available to operators by hand and hides it from the agent (for example a goodwill credit with your own limits).executenow carriescontextwith who started the action:source, the ticket number and the email of the operator who pressed "Execute"; it is not part of the idempotency fingerprint. Both are optional additions,protocol_versionstays 1, and backends should ignore request fields they do not know. A property'stitleininput_schemalabels its field in the operator's form. The coffee shop simulator has an operator-onlyadjust_pointsaction. - For the API:
GET /workspaces/:id/tickets/:id/actions/catalog,POST /workspaces/:id/tickets/:id/actions(422 with the backend'sdetails.errorswhen it rejects the parameters); action proposals carrysource,createdBy,replacedByIdandrefreshDraft;approveof a manual action takespending, the proposals the operator expects to reject, and answers 409 if one of them was approved meanwhile; the analytics report hasquality.manualActions.
Changed
- MCP
quality_report:actions.byActionandactions.rejectedcount only the agent's proposals, and a proposal an operator replaced with an action of their own is no longer counted as rejected. - The agent's core instructions (version 9) say how to choose among options, so evaluation results are not comparable one to one with version 8.
Fixed
- An agent result in which the provider glued the next arguments into a text as XML tags (
</findings><fields>…) is sent back to the model for a fix. It used to be accepted, and the arguments after the broken one, such as the field values, were lost.
v0.5.0
Added
- Tickets can have several assignees. Pick them in the ticket's properties: members of the ticket's department come first, the rest are listed with their departments and whether they accept tickets. Bulk actions add an assignee to every selected ticket or remove all of them. The queue's assignee filter finds tickets where any of the chosen people is an assignee.
- Departments can hand tickets out in turn. In Settings → Departments set "Assignment" to "In turn": a ticket that lands in the department, by a routing rule, the agent or an operator, goes to the next member of the department who accepts tickets, unless one of its assignees already works there; so does a reopened ticket none of whose assignees works there. Each operator switches "Accepting tickets" at the bottom of the sidebar; admins can switch it for anyone in Settings → Members. Pausing keeps the tickets a person has, and tickets that arrive while nobody accepts them stay unassigned. Existing departments keep assigning by hand.
- Two settings in Settings → General, both on by default. "Assign the operator who works on a ticket": whoever replies to the customer, writes to the agent or decides on an action becomes an assignee. "Assignees keep their tickets in other departments": an assignee keeps a ticket moved to a department they cannot see, and operators can call in members of other departments to work on a ticket together; such an assignee sees only that ticket. Turning it off removes assignees outside their departments from open tickets and hands those tickets out again.
- MCP:
create_departmentandupdate_departmenttakeassignmentMode,update_workspacetakes the assignment settings, the newlist_membersandset_accepting_ticketstools manage who accepts tickets,describe_workspaceshows all of it, andsearch_ticketsandget_ticketfilter by and show the assignees. - For the API:
PUT /api/workspaces/:id/members/:userId/accepting-tickets(a member for themself, an admin for anyone);acceptingTicketsin members and in/api/auth/me,assignmentin the workspace,assignmentModein departments.
Changed
- Breaking: the tickets API has
assignees(each withsource:manual,rule,autooraction) instead ofassignee.PATCH /api/workspaces/:id/tickets/:ticketIdand the bulk change takeassigneeIds(the whole list;[]removes everyone), oraddAssigneeIdsandremoveAssigneeIds, instead ofassigneeId, which is now refused. ReplaceassigneeId: idwithassigneeIds: [id]andassigneeId: nullwithassigneeIds: []. Ticket events recordassignees_changedwith the added and removed people instead ofassignee_changed. On upgrade a ticket keeps its assignee if that person still sees the ticket's department through their own departments; an assignee who no longer does (a closed ticket of a member restricted later, a member who left) is dropped, since an assignee can now see the ticket. - A ticket moved to a department its assignee cannot see no longer loses that assignee, unless "Assignees keep their tickets in other departments" is off. The
ticket.accessevent of/api/workspaces/:id/eventstells the people added to or removed from a ticket's assignees that their access to it may have changed. - The agent stops moving a ticket between departments once a person of the ticket's department has taken it: assigned by hand or by a rule, or worked on it. An assignee the department gave the ticket to in turn who has not worked on it yet, a member of another department called in, and anyone while the ticket is in the triage department do not count, so telling the agent in triage where a ticket belongs still lets it move the ticket.
- Removing a member from a workspace removes them from its tickets' assignees, and their open tickets are handed out again where the department does so.
v0.4.0
Changed
- Breaking:
VAPID_SUBJECTmust now bemailto:…or an https URL, or the API does not start. If you set it to a bare address such asyou@example.com, change it tomailto:you@example.combefore updating, or remove it to use the default.deploy/.env.examplenow lists the VAPID settings. - The web interface works on phones. Below tablet landscape width a tab bar at the bottom leads to tickets, analytics and notifications, and "More" opens the full menu. The ticket queue is a list of cards with the status, priority, department, assignee and list fields, and sorting and bulk actions take less room. A ticket fills the screen: the properties open as a sheet, the header keeps the number and the subject, and the composers fit the width. Settings, administration and the profile show their tables as cards on phones, and their forms and dialogs stack into one column. On iPhone the app respects the notch and the home indicator when installed on the Home Screen, and fields no longer zoom the page on focus. Desktop layouts are unchanged.
Fixed
- Web push to iPhone and iPad failed with
403 BadJwtTokenwhenVAPID_SUBJECTwas not set andWEB_ORIGINwas not https: Apple rejects themailto:admin@localhostcontact sent then. The contact now defaults toWEB_ORIGINon a public https domain, else to the first superadmin's email, and the API logs a warning when neither is public.
v0.3.0
Added
- Web push notifications for operators. In Notifications (the bell next to the profile) each person turns them on per browser or device and chooses, per workspace, which events reach them: new tickets, assignments, customer messages, questions and proposals of the agent, undelivered replies and, for admins, agent failures. Each event can cover their own tickets, unassigned ones or all, and tickets of others can be narrowed by department and priority. A new ticket or customer message waits up to 45 seconds for the agent's analysis, so the notification shows the department and the summary; messages during the wait join one notification. The page checks the current device step by step (HTTPS, browser support, the Home Screen on iPhone and iPad, the permission) and says how to fix what fails. Signing out on a device stops its notifications. Push needs HTTPS; the VAPID keys are generated on first use, or set with
VAPID_PUBLIC_KEY,VAPID_PRIVATE_KEYandVAPID_SUBJECT. - Department access: an admin can limit an operator or a viewer to chosen departments in Settings → Members, when adding them, and a superadmin in Administration → Users. Such a member sees and works only with tickets of those departments: in the queue, search, the ticket page, live updates, analytics, the test mailbox outbox, notifications and over MCP with their access token. Members of the triage department also see tickets without a department. Only a member who sees a ticket's department can be its assignee: a ticket moved to a department its assignee cannot see is unassigned, and so are a member's open tickets in departments they lose and, when the triage department changes, tickets without a department whose assignee no longer sees them. An operator can still hand a ticket over to a department they cannot see, after a confirmation. Existing members keep every department, and admins always see everything.
- For the API: the members API,
PUT /api/admin/users/:id/memberships/:workspaceIdand/api/auth/mecarry each member's departments; the event stream/api/workspaces/:id/eventssends only events of tickets the user may see, plusticket.movedwhen a ticket changes department andaccess.changedwhen the user's own access changes. A ticket outside the caller's departments answers 404, like a missing one.
Changed
- The MCP
get_prompt_previewtool needs the admin role, like the prompt preview in the interface: it shows the whole ticket and reads the customer's data from the backend.
v0.2.0
Added
- The ticket queue has filters by assignee, department, priority, channel, tags, agent state, creation and last message dates, and custom fields marked "In filters", each with several values. A "Waiting for a decision" filter finds tickets with an open question from the agent, a proposed action or a customer to confirm, and the queue marks such tickets. The queue can be sorted by the oldest message, creation date or priority, and the tabs show ticket counts.
- Operators can select tickets in the queue, by page or every ticket matching the filter (up to 500), and change their status, assignee, priority, department or tags at once. Each ticket goes through the same checks and webhooks as a single change; tickets that refuse it, for example without required fields, stay selected with the reason. The API is
POST /api/workspaces/:id/tickets/bulk; the list API takes comma-separated values and the new filters. - Saved queue views: save the current tab, filters, sort and search under a name, open it from the menu next to the filters, save changes to it, rename or delete it. Views are personal; admins can also share one with the whole workspace, and changes to shared views appear in the audit log. The queue reopens with the filters it was last left with in this browser.
- The running version is shown next to the logo in the sidebar and links to the Kvitok repository on GitHub.
Changed
- Consecutive ticket events between messages, such as the department, tags and fields set by rules and the agent, collapse into one line with their results and expand on click. Delivery and action failures and status changes stay on their own lines, and failures are shown in red.
Fixed
- The first reads of a new workspace's agent settings no longer fail with a unique constraint error when they run at once, for example in the MCP
describe_workspacetool.
v0.1.0
The first release.
Added
- Tickets from a mailbox (IMAP) and from the ingest API, replies by email or to the source's webhook.
- An AI agent that reads the customer's data in a connected backend, picks a department, drafts a reply and proposes actions. The operator talks it over with the agent in the ticket and approves each action.
- The Support Action Protocol for connecting backends, version 1, with an MIT-licensed client and conformance suite.
- Routing rules, departments, custom fields, playbooks, customer identification and an audit log per workspace.
- Agent cost per ticket and over time.
- Users with access per workspace, superadministrators and a first-run setup page.
- An MCP server for configuring a workspace from an external agent.
- Running in production from one Docker image, with optional bundled Postgres, Redis and Caddy. The running version is shown in the profile and in
GET /api/health.