Use UpServe from Claude Code, ChatGPT and other AI tools
Work already running in UpServe can continue after you close the screen. Configured schedules or signals from connected services can also start new work. Connecting an AI tool lets you check progress and results without opening the app separately.
Connect an AI tool like Claude Code, Claude, ChatGPT or Cursor to UpServe and you can do all of this without leaving the tool you’re already in.
- Ask “what happened while I was away?” and get a briefing
- Hand work to one AI employee or a team
- Answer questions your employees are waiting on
- Check whether the work is done, and stop it if needed
- Create, change, and turn on or off Scheduled runs
- View, run, and edit a team’s saved workflows
- View and correct the rules a team follows and its shared team notes
Availability: This feature is rolling out gradually. If you don’t see Connected AI apps in Settings, it isn’t enabled for your account yet.
The assignment, approval, and schedule-management actions below are available in your personal space. For regular users, organization employees and teams are read-only through this connection; assign or approve their work in the UpServe app.
What to say
Just type in your connected AI tool the way you normally talk.
| You say | What happens |
|---|---|
| “What happened while I was away?” | You get a single rundown: things that need you, unseen results, who’s working now, upcoming Scheduled runs, failures and usage. |
| “Ask the Sales team to sort out this week’s quote requests” | The work goes to the team, and the tool checks progress and reports back. |
| “Is the research employee asking me anything?” | It shows the waiting question. Tell it your answer and it passes that along as is. |
| “Stop what the research employee is doing” | It asks the employee to stop. Stopping happens at a safe point. |
| “Set up a Scheduled run that writes the weekly report every Monday at 9am” | It confirms the time and instructions, then creates the Scheduled run. |
Before handing out work, the AI tool looks up your employees and teams to pick the right one. If two names are close, it may ask you which you meant.
What the AI tool can and can’t do
| Can do | Can’t do |
|---|---|
| View employees, teams, results and things that need you | Anything you can’t do in the app yourself (a card you have no right to approve in the app can’t be approved through the AI tool either) |
| Hand work to employees and teams, check progress, stop work | Change employee or team settings (name, mission, instructions, members, skills, performance tier) |
| Pass your answer to a question card, approve or deny an approval request | Delete Scheduled runs (do that in the app) |
| Create, change, and turn Scheduled runs on or off | Undo a result’s read mark |
| Accounts with work screens: set up an Assigned AI team for new work, change a work’s scope, connect a work screen, pause or resume the work | Connect accounts (do this on the work screen yourself) |
| View team workflows, pick one and run it, edit its steps, remove it from the list, restore it | Create a new rule directly (say it in a conversation and the employee remembers it) |
| Edit the rules a team follows, change where they apply, remove them. Write and delete shared team notes | Roll the published version itself back to an older version |
When something needs approval, the AI tool shows you what it is and approves or denies it as you decide. The same goes for sending mail, installing a skill, and choices such as “Go ahead just this once”. A choice that keeps allowing something from now on is picked in the app. What you do through the AI tool counts the same as doing it yourself in the app. Enter passwords and take over screens in the app. In your personal space, you can also approve, decline, or skip a card containing only table proposals through the AI tool. Use the app for organization-team proposals or cards that mix table proposals with other suggestions.
Work you hand over is handled just like talking to the employee in the app. It’s recorded in the same conversation and runs as a normal run, so SU is used. Usage is counted as yours, just like when you assign work in the app.
If you hand work to a team and no team member picks it up, the AI tool tells you so. There’s nothing to wait for in that case, so check the team’s setup in the app.
How to connect
Claude Code
-
Run this in your terminal.
claude mcp add --transport http upserve https://api.upserve.app/mcp -
In Claude Code, type
/mcp, pickupserve, and sign in. -
When the UpServe consent screen opens in your browser, check it and click Allow.
Claude and ChatGPT
- Add a custom connector in the connector settings.
- Paste
https://api.upserve.app/mcpas the address. - When prompted, sign in with your UpServe account and click Allow.
Cursor and other tools
Tools that can’t sign in to UpServe connect with a connection token.
- In UpServe, open Settings > Connected AI apps.
- Under “Create connection token”, enter a name (for example, Cursor on work laptop) and create it.
- The token is shown only once. Copy it right away and keep it somewhere safe.
- In the tool’s MCP settings, add the address
https://api.upserve.app/mcpand the headerAuthorization: Bearer <token>.
Anyone with the token can work with your employees and teams. Treat it like a password.
What to check on the consent screen
When an AI tool asks to connect, UpServe shows a consent screen.
- Look at the return address. Under “You’ll be sent back to this address if you allow”, make sure it matches the tool you’re using. The app name shown above is chosen by the app itself, so don’t trust the name alone.
- Only allow connections you just started. If this screen appears and you didn’t start anything, click Cancel.
- Take any warning seriously. If UpServe can’t verify the return address, you’ll see an “UpServe can’t verify this app” notice. If the app’s name is a well-known product such as Claude or ChatGPT but the address isn’t that product’s, you’ll see a strong “may be pretending to be another app” warning, and Allow stays disabled until you tick the box confirming you started the connection yourself. If you didn’t, Cancel.
- Read what you can do once allowed. It lists the requested items: viewing, handing out work, and managing scheduled runs and teams. Requested items are allowed together. Viewing team workflows, rules, and shared team notes is part of viewing. Running a saved workflow is part of handing out work. Editing workflows, rules, and notes is part of managing.
- Once you allow a connection, the AI tool can approve requests in your name. Connect only tools you trust, and check the tool’s own permission settings so it doesn’t approve without asking you.
Disconnecting and reconnecting
- Disconnect: Go to Settings > Connected AI apps and click Disconnect next to the app. That tool immediately loses access to UpServe. Work you already handed over and your Scheduled runs keep going, because that’s the employee’s work, not the connection’s.
- Expiry: A tool you signed in with stays connected as long as you use it. If it goes unused for more than 30 days, the connection drops and you need to sign in again from the AI tool (in Claude Code,
/mcp). A connection token stops working 90 days after you create it, whether or not you use it, so make a new one and swap it in. You can have up to 20 connection tokens. - Not enough permission: If you allowed only “View” and the tool tries to hand out work, it tells you it lacks permission. Reconnect and allow the items you need.
When you start a new conversation
A new conversation in your AI tool may not carry over the context of earlier assignments. Start by asking for a briefing. It includes recent work handed off from this connection and its status, so you can pick up where you left off.
Set up new work and hand it over again and again
If your account uses work screens, you can tell the AI tool about recurring work you want done, and it sets up and runs an Assigned AI team for it.
| Say this | What happens |
|---|---|
| “Set up work that turns the memos I send into a three line summary and a to-do list” | It writes up the work and sets up an Assigned AI team for it. When setup is done, it hands that team the first task. If setup needs your answer it asks you. If a new setup would widen what the team can do, it shows you what widens and passes on your decision (apply it or keep the current setup). For things done in the app, such as connecting an account, it gives you an app link. |
| (In a new conversation) “Continue the work we were setting up” | It finds setups that are running or waiting for your answer and picks them up. |
| “Connect a work screen to this team” | It first shows what connecting changes (roles taken over, what stays, existing Scheduled runs that pause, new Scheduled runs that start turned off). It connects only after you agree. If that changes in the meantime, it shows you the new version. |
| “Show this team’s Scheduled runs”, “Turn off the morning Scheduled run” | It shows the team’s Scheduled runs and their next start times, and turns them on or off. |
| “Pause this work for now” | It pauses the work. Ask it to resume and the work continues. |
| “How much SU did this team use this month?” | It tells you the SU this team used this month (UTC). |
- For the daily time of a Scheduled run the team made, the AI tool changes it directly. A Scheduled run that comes with the work screen can only be turned on or off from the AI tool; ask the team in words to change its time. Afterwards, ask the AI tool to check that it is still on and moved to the new time.
- When a work screen command comes back “already done”, the same thing is not sent again. “Held” means nothing was saved: the AI tool shows you the reason (for example, a similar booking already exists) and asks what you want. A command that needs your confirmation (for example, deleting a booking) is not run on the first request. The AI tool is told to show you what it is about to do and ask again only after you confirm. You can also run it on the work screen yourself. “Conflict” means the data changed in the meantime, so it reads it again and checks with you before sending.
- Disconnecting the AI tool does not stop the team’s Scheduled runs. To stop them, turn them off or pause the work.
When you first describe the work
New work is set up right away from a single line about what you want done. UpServe does not ask about the details while setting it up, and the Assigned AI team reads that first description every time it works. So tell the AI tool these up front.
- What it receives and what it gives back (for example, take the meeting memos I send and return a to-do list)
- What a correct result looks like (for example, miss no to-dos, never invent one that is not in the memo)
- Where you want the results, and what the team may and may not do
| Less helpful | More helpful |
|---|---|
| “Set up work that tidies my memos” | “Set up work that pulls the to-dos out of the meeting memos I send and returns them in this chat as a list with an owner and a due date for each. Don’t invent to-dos that aren’t in the memo, and if the owner isn’t clear, mark it as undecided.” |
UpServe tells the AI tool not to guess who receives the results, what the team may do, or choices that use more SU, and to ask you first. If something is still undecided, send it as undecided, and the Assigned AI team asks you before doing anything that depends on it.
Correct a team’s workflows and rules
If you don’t like how a team works, you can correct it from the AI tool. Just as when you edit in the app, the team works with the change from its next run.
| You say | What happens |
|---|---|
| “Show me the Sales team’s saved workflows” | It shows the team’s saved workflows, their steps, and whether each can run now. |
| “Run the quote summary workflow once now” | It starts that workflow for the team and checks until it’s done. SU is used, just like clicking Run in the app. |
| “Add a unit price check to step 3 of the quote summary workflow” | It edits and saves the step. If someone changed it in the app in the meantime, it reads it again and checks with you. |
| “Remove this workflow from the list” | It first asks whether to delete the linked Scheduled run too. If you don’t say, the Scheduled run stays. |
| “Undo my edits” | It restores the draft to the published version. For an Assigned AI team on the work screen, it goes back to the previous setup. |
| “Show me the rules this team follows” | It shows the rules the team and its employees follow now, with where each one came from. |
| “Remove the rule about including VAT” | It removes that rule. The team stops following it from the next run. |
| “Note in the shared team notes that our contact at the supplier changed” | It writes or edits the shared team note. Team members read it the next time they work. |
- Rules and notes you change through the AI tool count the same as setting them yourself in the app. An edited rule becomes “You said it”.
- A rule’s scope can be changed only to options the app offers: “This employee only”, “Whole team”, or “All my employees”. “All my employees” works only on personal accounts.
- You can’t create a new rule directly. Tell the employee or team what to follow in a conversation.
How it differs by team
| Team | What the AI tool can do |
|---|---|
| Teams in your personal space | Everything: view, run, edit, remove, restore, and correct rules and notes. |
| Teams in an organization space | Regular users can only view. Run, edit, remove, restore, and changes to rules and notes happen in the app. |
| Teams managed in the work portal | Only viewing and restoring the draft to the published version. Run, edit, remove, and changes to rules and notes happen in the work portal. For a team in an organization space, restore in the app too. |
| Assigned AI teams on the work screen | Only viewing “How this team works” and going back to the previous setup. Its work order is not edited or removed by hand; give the team work in words instead. Rules and shared team notes can be corrected. |
Good to know
- If your account works with Assigned AI teams on the work screen, the AI tool gives work to the team. It can’t give work to one Assigned AI on its own.
- From the AI tool you can see a team’s status and scheduled runs, turn scheduled runs on or off or change the daily time, and pause or resume the work. Ask the team in words for new recurring work, and delete schedules on the work screen.
- While the work is paused, the team takes no new work and its confirmation requests can’t be answered. Work already in progress finishes.
- If a team has a work screen connected, the AI tool can run the screen’s commands (look up, calculate, save). Commands that need your confirmation are not run on the first request, and the AI tool is told to get your confirmation first. Account connections stay on the work screen. Before connecting a work screen to a team, the AI tool shows you what will change and connects it only after you agree.
- A connection covers every employee and team you can see in the app. Employees and teams in organization spaces are view-only through AI tools: hand out work or approve in the app. You can’t restrict it per employee or organization, only by the items you allow (view, hand out work, manage Scheduled runs).
- You can’t hand new work to an employee who is waiting on a question. The tool will ask you to answer that question first.
- Describe schedule times in your own timezone. The AI tool converts them, then confirms the next run time with you. You can also create one-time runs.
- Self check-ins and condition watches can only be turned on or off from the AI tool. Edit their contents in the app.
- If you answer a confirmation request over MCP while the team’s Automatic operation is off, that one task continues, just as when you answer in the app. Automatic operation stays off, so other work stays paused.
- While you’re away, app push notifications and email still do the notifying. In the AI tool, the news shows up when you come back and ask.
Advanced
You don’t need this section for everyday use. Refer to it only when checking connection settings or tracing a problem.
Connection details
| Item | Value |
|---|---|
| MCP endpoint | https://api.upserve.app/mcp (remote MCP over HTTP) |
| Sign-in | OAuth 2.1 + PKCE (S256). Clients register automatically |
| Manual connection | Authorization: Bearer ups_mcp_... header |
Scopes
| Scope | Allows |
|---|---|
upserve.read | Briefing, lists, progress checks, viewing Scheduled runs. Reading a result’s text marks that result as read in the app too. On accounts with work screens, also viewing a work team in detail. Viewing team workflows, rules, and shared team notes |
upserve.work | Handing out work (with files, for teams), answering questions, stopping work. Running a work screen’s commands. Recording result checks. Running a saved team workflow |
upserve.manage | Creating, changing, and turning Scheduled runs on or off. On accounts with work screens, also setting up an Assigned AI team for new work, changing a work’s scope, connecting a work screen, pausing or resuming a work, and turning its schedules on or off. Saving how a team did a task as a team workflow. Editing, removing, and restoring team workflows. Editing rules, changing where they apply, and removing them. Writing and deleting shared team notes |
A connection token carries all three scopes. When a scope is missing, the tool reports which one is needed.
Token lifetimes
| Token | Lifetime |
|---|---|
| Access token | 1 hour |
| Refresh token | 30 days. Replaced on every use. If an already replaced old one is presented again, the whole connection is revoked |
| Connection token (manual) | 90 days, no refresh |
These tokens can’t be used with the regular API behind the UpServe app screens.
Tools
| Tool | Scope | What it does |
|---|---|---|
get_briefing | read | News since the last briefing, including recent work handed off from this connection. Doesn’t change read marks in the app |
list_staff | read | Employees and teams you can see. Accounts that use the work screen also get their Assigned AI teams (work_teams) |
assign_task | work | Hand work to an employee or a team, with files you uploaded with prepare_upload if you like. For a team’s work in progress, it can send a reply in that work’s thread instead (the same as replying in the thread in the app; no new task is made) |
prepare_upload | work | Get upload links for files to give: to a team (team_id, with new work or with your answer to a team confirmation or a question inside a team conversation) or to an employee (employee_id, with new work or with your answer to its question). One link per file, usable once within 10 minutes. Size and count limits are the same as attaching files in the app. Called for a team with a count of 0, it lists the files this connection already uploaded for that team instead of giving links (to hand them over again) |
check_task | read | Progress, results and waiting questions. With the message_id of the handed-off work it waits up to 20 seconds until done or needs you (for an employee without message_id it returns the current state immediately; message_id or message_ids is required for teams). Checking an employee without message_id also shows questions waiting in its other conversations, such as mail, Slack or a team conversation, and whether it is working in another conversation (one waiting item at a time; a question in a team conversation comes as a team question). A question that ran out of time before you answered is shown as expired right away, without waiting (it can no longer be answered, so send your answer as new work). It also tells you when an employee’s approval request expired unanswered (within 7 days you can still approve it late). It can wait for up to 5 tasks given to the same team at once (it returns when any one finishes). A finished task comes with an id to read its result right away |
answer_request | work | Pass your answer to an employee question (AGENT_QUESTION: in its main chat, or in mail, Slack, a separate conversation opened in the app or a Linear session; questions in portal and test-run conversations are answered in the app), a team confirmation (TEAM_CONFIRMATION), a question inside a team conversation (TEAM_QUESTION) or a result review (TEAM_WORK_REVIEW: accept it, or send it back with what to change). Given only the request number, it finds the kind and the employee or team. For a team question that ran out of time or was already answered, it tells you which. Answers to an employee question, a team confirmation or a question inside a team conversation can carry files you uploaded with prepare_upload (whoever asked continues the work with them; files given to an employee are visible only to that employee). Choices that take an action right away are passed as you picked them, and a team confirmation’s approval or file sharing goes along when you decided so. Approval cards go to decide_approval. Proposal cards are handled through decide_table_proposal (accepting a card that mixes in other proposal types is sent to an app link; a text answer to the table-wait confirmation, which opens with “Approve or decline the table offer card”, goes on without the table; answering another question from the AI employee leaves the table offer open) |
decide_approval | work | Pass your decision (approve or deny) on an approval request. Same as tapping it in the app, and it fails here if you have no right to approve it in the app. It decides this one action and doesn’t lead to auto-approval (auto-approve scopes are set in the app). One exception: approving a skill install leaves the team’s approval record, as in the app, so other requests for that skill aren’t asked again. A request that changed is refused and must be read again. When you deny, you can pass along the reason you gave (the employee who asked receives it). An employee’s approval request that expired can still be approved within 7 days (the same as “Approve and run” in the app, so that action runs once). An expired request needs no denial (nothing ran) |
decide_table_proposal | work | Pass your decision (accept, reject, pass) on a table offer or a “next step” proposal card. Same as in the app. A card that mixes in proposals other than tables can only be rejected or passed here; accept it in the app. For organization-space teams, use the app. |
stop_task | work | Ask for current work to stop. For an employee it stops only the main chat’s work and tells you when it is working in another conversation (stop that in the app). If it can’t confirm whether the employee is working, it stops nothing and says so |
list_open_tasks | read | An employee’s open tasks (pending or in progress), or a team’s open work items, newest first, to find the one to close. A task that belongs to a team work item ends when that work item is closed with close_work_item |
close_task | work | Close one employee task you asked to close. Same as closing it in the app, and Self check-in does not pick a closed task up again. It does not stop work in progress (use stop_task). For an organization’s employees, use the app |
close_work_item | work | Close one team work item you asked to close. Same as stopping it on the app’s task board; its open parts close too, and a mail batch it prepared and never started sending is not sent. For an organization’s teams, use the app |
list_memories | read | See what an employee remembers between runs (memory files and the MEMORY.md index). They cannot be written or edited here |
delete_memory | work | Delete one memory file you asked to delete. Same as deleting it in the app; its index line goes too, so later runs no longer read it. For an organization’s employees, use the app |
check_result | work | Record your verdict on a team result you reviewed together (Looks good, Needs changes, or Undo). It counts exactly like the button in the app as something the Assigned AI learns from. With Needs changes it can also pass on what you said to change (the same as writing it in the result conversation in the app; the Assigned AI works again, which uses SU). The fixed result comes back as a new result |
save_workflow | manage | Save a finished team task you asked to save as a team workflow. The same conditions and reasons as saving in the app apply. Personal work teams can’t save by hand, and teams managed in the work portal can’t save either. Saving uses SU |
list_automations | read | View Scheduled runs, Self check-ins and condition watches |
save_automation | manage | Create or change Scheduled runs. Self check-ins and condition watches can only be turned on or off |
list_workflows | read | A team’s saved workflows (whether each can run, who does each step). For an Assigned AI team on the work screen, “How this team works” and the restore target (rollback_target). portal_managed for teams managed in the work portal |
get_workflow | read | One workflow’s content (summary, cautions, step instructions, branches), lock, whether it has a schedule, published versions, updated_at |
run_workflow | work | Pick a saved workflow and run it (with an optional note for this run only). The same request_id never starts it twice. Then follow it with check_task |
edit_workflow | manage | Edit the name, steps, summary, cautions, step owners, and materials. Blocked by the same conditions as editing in the app panel (locked workflows, steps that can’t be deleted). WORKFLOW_CONFLICT if it changed after you read it |
remove_workflow | manage | Remove it from the list. The linked Scheduled run is deleted only as the user answered (delete_schedule) |
restore_workflow | manage | Restore the draft to a published version (same as Restore draft in the app; the published version customers use stays as is). For an Assigned AI team on the work screen, go back to the previous setup (expected_preparation_id) |
list_rules | read | The rules that apply now to a team (team_id) or an employee (employee_id): text, scope, quoted source, version, and scopes it can move to. portal_managed on rules that reach a team managed in the work portal |
edit_rule | manage | Reword a rule. A new rule_id is created and the new text is followed from the next run. Text is kept up to the first 600 characters |
set_rule_scope | manage | Change where a rule applies (AGENT, TEAM, ALL_AGENTS, decided the same way as Change where it applies in the app) |
remove_rule | manage | Remove a rule. It is no longer followed from the next run |
read_team_notes | read | The list of shared team notes (without values) or one note’s full value |
save_team_note | manage | Create or edit a shared team note (including renaming). Same checks and version matching as the app screen |
delete_team_note | manage | Delete a shared team note. Only when the version you read is the latest |
- Accounts with work screens also see the “Work tools” below. Other accounts don’t see them in the tool list.
- Rate limits are 60 reads and 10 writes per minute per connection.
- Giving files needs an AI tool that can upload files itself (one that can run commands, like Claude Code). Other tools give you an app link instead, so attach the files in the team conversation in the app. Files can’t be given when handing work to a single employee. Files for work already in progress can be added only with your answer when the team asks for confirmation or an employee asks a question; otherwise attach them in that work’s conversation in the app. Files given to an employee are visible only to that employee, and file types the app’s direct chat does not take are refused.
- Repeat times (cron) for Scheduled runs use 5 fields and are interpreted in UTC. One-time runs (
run_at) need a time with a UTC offset. The AI tool converts from your timezone. - There is no tool for deleting Scheduled runs.
- The six team workflow tools and the seven rule and shared team note tools appear in the tool list only when enabled for the account. Calling them otherwise returns
NOT_AVAILABLE. - Tools that write to an organization-space team (
run_workflow,edit_workflow,remove_workflow,restore_workflow, writing rules and notes) are refused for regular users withORG_TEAM_OPERATOR_ONLYand an app link (app_url). - Running, editing, or removing workflows and writing rules or notes for a team managed in the work portal is refused with
TEAM_PORTAL_MANAGEDandportal_url. Viewing and restoring to a published version withrestore_workflowstay open. For an organization-space team,ORG_TEAM_OPERATOR_ONLYcomes first. - Calling
get_workflow,run_workflow,edit_workflow, orremove_workflowon an Assigned AI team on the work screen returnsPERSONAL_WORK_TEAM. Rule and shared team note tools are not blocked there. - A default team has no shared team notes, so writing a note returns
TEAM_STATE_DEFAULT_TEAM. - If a rule or note changed after you read it, you get
CONDITION_VERSION_CONFLICTorTEAM_STATE_VERSION_CONFLICT. Read it again and send with the new version. - Creating a new Scheduled run over MCP is capped at 20 active people-created schedules per employee.
- The consent screen warnings are decided by the server (
redirect_host_verified,name_mismatch). - Connection tokens are capped at 20 active per user.
Work tools
These tools appear only for accounts that use work screens.
| Tool | Scope | What it does |
|---|---|---|
start_work | manage | Set up an Assigned AI team from a work description (spec). Widen an existing work with work_id and expected_revision |
get_work_setup | read | One setup’s status, what is missing, questions, and next actions. If the setup failed, why |
list_work_setups | read | Your setups, newest first. Use it to pick up in a new conversation |
answer_work_setup | work | Pass your answers to a setup’s questions (NEEDS_INPUT). Also passes your decision on a new setup that widens what the team can do (Q_SCOPE_EXPANSION: apply it with APPLY or keep the current setup with KEEP), the same as tapping it in the app |
retry_work_setup | manage | Retry a failed setup (when next actions include RETRY) |
cancel_work_setup | work | Cancel a setup that has not finished |
get_work_team | read | One work team in full: status, Assigned AI, work screen and its commands, connections, Scheduled runs (schedules), this month’s usage (usage), next actions |
attach_work_app | manage | Connect a work screen. Without plan_hash it only previews; after you agree, calling again with the same roles and plan_hash connects it |
run_work_command | work | Run a work screen command (look up, calculate, check, save) |
set_work_status | manage | Pause (PAUSED) or resume (ACTIVE) the work |
save_work_schedule | manage | Turn Scheduled runs on or off, change the daily time of a team Scheduled run |
How to use the work tools
This spells out the server instructions and tool descriptions UpServe gives the AI tool. Use it to check when the AI tool does not follow them.
Setting up work
- Send a
spectostart_work. Onlypurpose(the job in the user’s words) is required. Unknown fields are rejected, and guessed values go inassumptions. spec.deliveryis an object, not a string ({"mode": ..., "recipients": [...]}withspec_version: 2,{"channel": ..., "target_ref": ...}in the older form). A string getsINVALID_INPUT. If the user has not said how results are delivered, leave it out.- Make a new
request_idfor each new work. If no answer came back, resend the samerequest_idwith the samespec; the same setup comes back. A newrequest_idcan set the same work up twice, and different content under the samerequest_idgetsIDEMPOTENCY_CONFLICT. - Use
get_work_setupto confirmSUCCEEDEDand obtainteam_id. For new work without required file attachments,purposemay already have been sent as the first request; do not assign that same request again. Useassign_task(team_id)to supply the first materials or assign the next task. The user handlesCONNECT_ACCOUNTin the app. ForCONFIRM_SCOPE, send the user’s decision withanswer_work_setup. - In a new conversation, find setups that are running or waiting for the user with
list_work_setupsand pick them up.
Connecting a work screen
- Call
attach_work_appwithoutplan_hashto get a preview. If the same screen is already connected, you getexisting_team_id; do not connect again, check withget_work_team. - Show the user the plan (roles, what stays, existing Scheduled runs that pause, new Scheduled runs that start turned off) and get their agreement.
- Call again with the same
rolesandplan_hashof the plan they agreed to. ATTACHMENT_PLAN_CHANGEDmeans the plan changed in the meantime (for example, the team’s setup changed). Start again from step 1 and show the user the new preview.- New Scheduled runs start turned off. Turn them on with
save_work_scheduleonce the user agrees.
Work screen command results
| Result | Meaning | Next step |
|---|---|---|
OK | Done | Pass the result to the user. |
DUPLICATE | Already done | Do not send it again. |
HELD | Held, nothing saved | With reason_code NEEDS_CONFIRMATION, show the user the command and input, and only after they confirm, call again with the same input and the confirmation_token (valid 15 minutes). A token works only once. confirmation_mismatch means the token was malformed, did not fit this input, expired or was already used, so confirm again with the new token. Give the app_url if the user prefers the app. Otherwise (for example, what looks like a duplicate booking), show reason and candidates and let the user decide. Do not resend it unchanged. |
CONFLICT | The data changed after you read it (for example, an old row_version) | Read it again, check with the user, then send the fresh values. |
REJECTED | The input does not fit | Fix the input using field_errors. |
run_work_command has no request_id. Check the result before sending again. A command that finds the same work already done answers DUPLICATE, one that finds a similar record needing a check answers HELD, and a record that changed in the meantime gives CONFLICT. Not every command detects duplicates by itself, so if you got no response, check the work screen or get_work_team first and then resend.
Running it again and again
- See Scheduled runs:
schedules.team(Scheduled runs the team made) andschedules.app(Scheduled runs that come with the work screen) inget_work_team. - Turn on or off:
save_work_schedulewithschedule_idandenabledfor a team Scheduled run, orjob_keyandenabledfor a work screen Scheduled run. - Change the daily time: for a team Scheduled run,
save_work_schedule(schedule_id, time)when it istime_editable. A work screen Scheduled run (job_key) takes onlyenabled, so ask the team in words withassign_task(team_id), then check withget_work_teamthat it is still on at the new time. - Creating a new Scheduled run is done by telling the team (
assign_task); deleting is done only in the app. - Pause and resume:
set_work_status, only when the user asks. While paused it takes no new work, answers, or Scheduled runs, andassign_taskgetsWORK_TEAM_PAUSED. - Disconnecting does not stop Scheduled runs. To stop them, turn them off or pause with
set_work_status. - Cost:
usage.month_suinget_work_teamis the SU this team used this month (UTC).
Work description examples
These are examples of the spec an AI tool sends to start_work. Both describe the same work (turning the meeting memos you send into a to-do list), one written well and one lacking, and the work needs no external account connection.
Keeping things apart
| Field | What goes in |
|---|---|
purpose | The work and the rules the team must keep, in the user’s words |
facts | What the user said or confirmed |
assumptions | Values the AI guessed. They never go in the facts field |
unresolved | What is not decided yet. Leave it open instead of filling it with a guess |
human_decisions | When the Assigned AI team should stop and ask the user while working |
On every run, the Assigned AI team of new work reads purpose (it becomes the Assigned AI’s mission, and also its first request unless the work needs attached files) and unresolved and human_decisions, which make it ask a person before doing anything that depends on them. success_criteria, facts and assumptions are stored with the work description, but the team does not read them on each run for now. So write what the team must keep, such as result rules and what it must not do, into purpose as well.
Written well
{
"spec_version": 2,
"purpose": "Read the meeting memos I send in this chat and return the to-dos as a list with an owner and a due date for each, in this chat. Do not invent to-dos that are not in the memo, and if the memo has no owner or due date for one, mark it as undecided.",
"success_criteria": [
"No to-do written in the memo is missed.",
"No to-do that is not in the memo is invented.",
"If the memo has no owner or due date for a to-do, mark it as undecided."
],
"inputs": [
{"name": "memo", "type": "TEXT", "required": true, "source": "REQUEST_TEXT", "description": "The meeting memo to sort out, as written"}
],
"delivery": {"mode": "CHAT"},
"human_decisions": ["If to-dos in the memo contradict each other, do not pick one; ask me."],
"facts": ["I send the memo in this chat after each meeting.", "I want the list in English."],
"assumptions": ["Due dates written like 'next Friday' are turned into dates counted from the day the memo was sent."],
"unresolved": ["Whether the list should also go out by mail or to a shared document is not decided yet."]
}Lacking
{
"purpose": "Tidy memos",
"delivery": "send as a to-do list",
"facts": ["Results are mailed to my team lead every morning."]
}purposeis too short to tell what comes in and what goes back. The Assigned AI team works from this text.- There is no
success_criteria, so nothing says what a correct result is. - The recipient (the team lead) and sending mail are guesses the user never said, yet they are in
facts. deliveryis a string, not an object.
What the server returns
The server checks only the shape of the fields and whether purpose is empty. The lacking description is refused before it is accepted because of delivery, and nothing is created (request_id, a trace id that changes on every call, is left out).
{
"error": {
"code": "INVALID_INPUT",
"message": "spec is not valid: delivery.SpecDelivery: Input should be a valid dictionary or instance of SpecDelivery",
"retryable": false,
"details": {"field": "spec"}
}
}Send it again without delivery and it is accepted. New work sets up an Assigned AI team from purpose alone, so even when the description is thin the server returns no questions (questions) and no missing fields (missing_fields). It cannot spot guesses mixed into facts either. Asking is the AI tool’s job, before it sends.
The well written description gets a response like this (only some fields shown).
{
"kind": "PREPARATION_VIEW",
"preparation_kind": "INSTANT_START",
"status": "QUEUED",
"support": "SUPPORTED",
"reason_codes": ["NO_SUPPORT_PROFILE"],
"missing_fields": [],
"questions": [],
"next_actions": ["CANCEL"]
}NO_SUPPORT_PROFILEis not an error. It says that, as described now, this work is not one the server later turns into a custom setup on its own.- When setup finishes, UpServe sends
purposeto the team as its first request. Onceget_work_setupisSUCCEEDED, hand over the first memo withassign_task(team_id). - If
inputshas a file that must be attached ("source": "REQUEST_ATTACHMENT","required": true), UpServe does not start the work frompurposealone. The team is created but no first request is sent, and theget_work_setupsummary says so. Upload the files withprepare_upload, then give the first task withassign_taskand passfile_ids.
What to ask the user and what the AI may fill in
| Ask the user | The AI may fill in |
|---|---|
Work standards: what a correct result is (purpose and success_criteria), when to stop and ask (human_decisions) | The user’s own words, written into purpose |
Allowed actions: who gets the results and where (delivery), what the team may and may not do (purpose) | Names and formats of the inputs (inputs) |
| Cost: choices that use more SU (for example, running it more often) | Guesses that are easy to undo (for example, how dates are counted), in assumptions |
If you asked and got no answer, do not fill it with a guess. Put it in unresolved or leave the field out.
Read more results and complete text
Ask your AI tool to show the remaining items when a briefing has more results. It can continue through the full result text and retrieve short-lived download links for permitted attachments. Files with download quotas are downloaded in the UpServe app. Briefings and lists don’t change read marks in the app, but reading a result’s text marks that result as read, just like opening it in the app (it leaves the app badge and the next briefing too). Results can be listed for one team, and reading the result of work that isn’t finished yet tells you it is still in progress.
An unknown run state means UpServe could not confirm it; it does not mean the employee is idle or the task is complete. Instructions added during the same execution may share that execution’s results.
For developers: use a new request_id for each assignment or scheduled-run creation, and reuse the same key and content when retrying a lost response. Keys are scoped to the connection; changing the content for a reused key returns a conflict. Connections support CIMD and DCR OAuth, as well as manual connection tokens.