Skip to main content
Evelin runs inside Protodesk using the same conversation context, workspace knowledge, runtime settings, and credit policy as the app. Generation returns a draft or analysis. It does not send a customer message.

Connect and grant access

Use Protodesk MCP with ai: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:
Assistant chats require Use Evelin, plus read access to conversations, customers, Help Center, and attachments. In technical names: 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.
  1. Call create_evelin_chat with body.conversationId, expectedWorkspaceId, and an idempotencyKey. Save the returned chat id.
  2. Call ask_evelin with that sessionId, a new idempotencyKey, expectedWorkspaceId, and body.question.
  3. Poll get_evelin_chat_turn with the returned sessionId and turn id, for example every three seconds. Read answer.answer, citations, warnings, and answer.actionProposals when complete.
  4. Ask follow-up questions in the same chat. Only one turn can be pending in a chat.
  5. Show each proposed action’s target and change to the user. After approval, call confirm_evelin_action with its exact proposalId, sessionId, turnId, workspace confirmation, and a stable idempotency key.
  6. To stop pending work, use cancel_evelin_chat_turn. Use archive_evelin_chat when finished.
Creating, listing, renaming, or archiving a chat does not generate an answer. Asking a question uses the existing workspace AI credit policy. Canceling does not refund work already performed.

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 receipt undo.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

Chat creation returns 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

  1. Call workspace_context and confirm the workspace.
  2. Read the conversation and identify its conversation ID.
  3. Call suggest_evelin_reply with a stable idempotency key.
  4. Poll get_evelin_run using the returned run ID.
  5. When it succeeds, call get_evelin_result with kind: "reply-draft".
  6. Review the body, grounding, citations, and any outdated-knowledge indicator.
Example tool arguments:
A reply guard can decide that no reply is needed. If no draft exists, read 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:
A successful creation or identical retry returns HTTP 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

Call rewrite_with_evelin with the conversation ID, workspace confirmation, idempotency key, and a body containing mode and draft.
Retrieve 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 be queued, 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:
Use 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:
The target version is a 64-character value; copy it exactly from the read response. Use 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, call send_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.