Connect and grant access
Use Protodesk MCP withai:use and conversations:read. OAuth and API keys are supported. REST requests use an API key at https://api.protodesk.io/v1; MCP OAuth tokens cannot authenticate REST requests.
The connection must belong to a current workspace owner or admin. Create API keys in Settings → API. Older generic keys without a recorded human creator cannot run these operations; replace them if the API returns ai.connection_required.
Only the exact API key or OAuth grant that created a run can retrieve its private results. Another key belonging to the same person, or a newly authorized OAuth connection, cannot take over those results. Ticket Context is shared conversation context.
Chat with Evelin
Ask your AI:ai:use, conversations:read, customers:read, help:read, and attachments:read. All five are required because a chat can consult this context. Your connection must belong to a current owner/admin.
- Call
create_evelin_chatwithbody.conversationId,expectedWorkspaceId, and anidempotencyKey. Save the returned chatid. - Call
ask_evelinwith thatsessionId, a newidempotencyKey,expectedWorkspaceId, andbody.question. - Poll
get_evelin_chat_turnwith the returnedsessionIdand turnid, for example every three seconds. Readanswer.answer, citations, warnings, andanswer.actionProposalswhen complete. - Ask follow-up questions in the same chat. Only one turn can be pending in a chat.
- Show each proposed action’s target and change to the user. After approval, call
confirm_evelin_actionwith its exactproposalId,sessionId,turnId, workspace confirmation, and a stable idempotency key. - To stop pending work, use
cancel_evelin_chat_turn. Usearchive_evelin_chatwhen finished.
Permissions for proposed actions
Grant these permissions before creating the chat. Each chat keeps its original permission ceiling and also checks the connection’s current permissions. Adding permissions later requires a new chat; removing permissions takes effect for existing chats and queued work.
A proposal is not an executed change. Read the confirmation receipt to verify what happened. Stale proposals can return
409; ask Evelin again instead of forcing the old change. These actions never send customer messages. A follow-up reminder is a personal reminder, not a scheduled email.
Undo an eligible action
Only status and priority changes with receiptundo.status: "available" can be undone. Call undo_evelin_actions with the chat and turn IDs, expectedWorkspaceId, and body.proposalIds. It checks the current conversation revision before restoring the prior value. Repeating the same undo returns its durable result. Undo does not reverse notifications or downstream automation effects.
REST example
201 (200 on replay). Asking returns 202 with a turn, not a completed answer. Read GET /v1/ai/assistant/sessions/SESSION_ID/turns/TURN_ID to check it. Reuse the same body and key after an uncertain response; a new key creates new chargeable work.
Use list_evelin_chats to recover up to 100 retained chats for a conversation, and list_evelin_chat_turns to read a chat’s retained transcript. Active chats have a 30-day sliding retention window and a limit of 50 active chats per person/conversation across clients. Archived chats stay readable until their retention expires, but cannot accept new work or action confirmation.
Your chat belongs to the exact API key or OAuth grant that created it. Another key, a new OAuth connection, and private app chats cannot take it over. Refreshing an OAuth token within the same grant preserves ownership. Keep that grant valid while work runs.
This public chat workflow uses polling and separate action confirmation. Catch-up, assistant event streaming, turn feedback, and private integrations such as Linear remain app-only. Generated draft/result feedback described below remains available.
See Create a chat, Ask Evelin, and Confirm an action.
Suggest a reply
- Call
workspace_contextand confirm the workspace. - Read the conversation and identify its conversation ID.
- Call
suggest_evelin_replywith a stable idempotency key. - Poll
get_evelin_runusing the returned run ID. - When it succeeds, call
get_evelin_resultwithkind: "reply-draft". - Review the body, grounding, citations, and any outdated-knowledge indicator.
get_evelin_result with kind: "reply-guard" and inspect shouldDraft, reasonCode, and reason. Set overrideNoReply: true only when you intentionally want a draft despite that recommendation.
The REST equivalent is:
202 with the run in data. Poll GET /ai/runs/{runId}, then read GET /ai/runs/{runId}/results/reply-draft.
Rewrite or translate a draft
Callrewrite_with_evelin with the conversation ID, workspace confirmation, idempotency key, and a body containing mode and draft.
kind: "rewrite" after the run succeeds. The result includes text, mode, changed, and applicable language, tone, or preset fields. The original draft is not edited.
To translate a stored message, use translate_message_with_evelin with messageId and body.targetLanguage. It translates the current message body and returns a rewrite result without changing the message. If the message changes before a retry, the same idempotency key conflicts.
Draft input is limited to 20,000 characters and the overall request body to 64 KiB.
Other actions
Review translation only accepts a suggested-reply artifact owned by the same connection. It preserves the original reply and identifies its source artifact and content hash. Generated results remain subject to artifact retention, redaction, and knowledge freshness.
Manual generation supports email, WhatsApp, and chat conversations. A conversation with another channel returns
ai.channel.unsupported.
Runs, retries, and credits
Runs can bequeued, running, or waiting, then finish as succeeded, partially_succeeded, failed, or canceled. Run status includes creditsUsed and an error category. A successful run does not always produce every result kind.
Poll with a reasonable interval, such as three seconds. A result may return 404 while unfinished or when it is absent, expired, redacted, or owned by another connection. Do not treat 404 as permission to start another chargeable run.
Retry an uncertain generation request with the same arguments and idempotency key. It reuses the original run. Changing inputs with that key returns a conflict. New keys represent new work and can consume additional credits.
If Evelin is disabled or unavailable, new work returns 503. Credit exhaustion and other runtime failures remain visible through run status. These tools do not bypass the workspace’s existing AI policy.
Give feedback on a result
After reviewing a completed result, ask your AI:get_evelin_feedback with the result’s artifactId as targetId. Choose kind: "reply_draft" for suggested replies and follow-up drafts, or kind: "artifact" for rewrites, message translations, draft fact reviews, and review translations. Ticket Context and reply-guard decisions are not feedback targets.
Then call save_evelin_feedback with the current revision and targetVersion returned by that read:
helpful to rate a useful result. Corrections can contain up to 1,000 characters.
Feedback belongs to the connection’s human owner and is also visible in the app. The public API only accepts results generated by this exact connection. Another key or a reconnected OAuth client cannot read or change them.
Personal feedback is the default. Choose visibility: "workspace" only when you intend to share the answer and correction with workspace reviewers. Feedback enters the existing feedback system; saving it does not guarantee a particular future answer or publish reviewed guidance.
To remove your active feedback, call withdraw_evelin_feedback with kind, targetId, expectedWorkspaceId, and a body containing the latest expectedRevision and targetVersion. Revision history remains.
The REST equivalents are GET, PUT, and DELETE /v1/ai/feedback/{kind}/{targetId}. Both writes need the revision and target version, but no idempotency key. Retry a lost response with the identical body. A changed answer or stale edit returns 409; read again before making another change. Feedback does not start a new Evelin generation run.
See Read feedback, Save feedback, and Withdraw feedback.
Review before sending
Use a generated draft as a proposal for your review. To deliver it, callsend_message separately with messages:send and an explicit destination. Inspect delivery status afterward. A completed Evelin run is never a delivery receipt.
See the tool reference for the current supported catalog.