Lelemon
  • Get started
  • Use cases
  • Guides
  • API basics
  • Webhooks
  • SDK, CLI and MCP
  • API reference
  • Changelog
  • v1 (legacy)
Configure your account
    AgentsPipelinesKnowledgeContactsActions and MCP in v2Approve agent actionsUse Claude as your team's assistantConnect your back officeAPI keys
Talk to people
Run and protect
powered by Zudoku
Configure your account

Use Claude as your team's assistant

You will

Let Claude review the pending questions of your agents, look up the answer in your knowledge and give you a reply ready to paste.

You need

  • A Lelemon login
  • Claude on the web, on the desktop or in Claude Code

When an agent does not know what to answer, it leaves a question for the team. Claude can work that queue with you: it reads each question with the conversation behind it, searches the knowledge you loaded and writes the answer. You read the draft and paste it. With the permissions below Claude only reads, so nothing reaches the customer unless a person sends it.

Connect Claude

The URL is the same in every client:

Code
https://api.lelemon.cl/mcp
  • claude.ai and Claude Desktop: open Settings, Connectors, add a custom connector and paste the URL. Claude opens the Lelemon sign-in.
  • Claude Code: run claude mcp add --transport http lelemon https://api.lelemon.cl/mcp, type /mcp, choose lelemon and authenticate.

Sign in with your Lelemon account, choose the organization and mark the permissions below. There is no API key to copy. MCP server explains how the connection is secured and how to remove it.

Permissions to mark

Mark only these. Together they let Claude read, and none lets it change anything.

PermissionWhat Claude can do with it
team-questions:readList the questions agents left for the team and read each one
conversations:readRead the last lines of the conversation with the customer
cases:readRead the data of the case, such as the plan or the order
knowledge:readSearch the knowledge collections

To let Claude send the answer itself, also mark team-questions:write, which belongs to owners and admins. Without it Claude only drafts, which is the safer way to start. See API keys for the full list of permissions.

Ask for the work

Once connected, write what you want in your own words:

Review the pending questions of the agents. For each one, search our knowledge and give me the answer ready to paste.

Claude lists the open questions, reads each one with its conversation, searches the knowledge with the words of the question and answers with the passage it found and the document it comes from. If nothing in the knowledge answers it, it says so instead of guessing.

What Claude reads

Behind the request Claude calls three tools, all read only:

ToolRouteUse
teamQuestions.listGET /v2/team-questionsThe queue: status=open keeps what waits for an answer
teamQuestions.contextGET /v2/team-questions/{id}/contextOne question with the last lines of the conversation and the data of the case
knowledgeCollections.searchPOST /v2/knowledge-collections/searchThe passages of your documents that answer a question

The context of a question

It answers the question, what the agent was trying to do, the last ten lines of the conversation (oldest first, internal notes left out) and the non-sensitive data of the case. Every sensitive value is covered: a field marked sensitive in the pipeline never shows its value, and the same value written inside the question or the conversation is replaced by [dato oculto]. hiddenFields names the fields that were covered, so Claude knows the data exists without seeing it. Reading the context needs team-questions:read, conversations:read and cases:read.

TeamQuestionContextobject, 13 fields
  • objectenumrequired

    team_question_context

  • idstringrequired

    Example tqn_5RvP2aKq9XwLmN3tYbZc01

  • statusenumrequired

    openanswereddelivereddiscarded

  • caseIdstringrequired

    Example cse_5RvP2aKq9XwLmN3tYbZc01

  • contactNamestring or nullrequired
  • pipelineNamestring or nullrequired
  • questionstringrequired

    The question, with every sensitive value covered.

  • contextstring or nullrequired
  • answerstring or nullrequired
  • createdAtstring (date-time)required
  • messagesTeamQuestionMessage[]required

    The last lines of the conversation with the customer, oldest first. Internal notes are left out.

    TeamQuestionMessage3 fields
    • fromenumrequired

      Who wrote it: the customer, the agent, or someone on your team.

      customeragentteam

    • textstringrequired

      The text, shortened. A message that is not text (a voice note, an image) shows its type in brackets.

    • atstring (date-time)required
  • dataTeamQuestionCaseField[]required

    The data of the case that is not sensitive, with the name of each field.

    TeamQuestionCaseField2 fields
    • labelstringrequired

      Example Plan

    • valuestringrequired

      Example Hosting Pro

  • hiddenFieldsstring[]required

    Names of the fields that hold sensitive values. Their values never appear here.

Search the knowledge

It is the search your agents use: by meaning and by exact words, so a product code is found too. Each passage says which collection and document it comes from. Send collectionIds to search only some collections. score goes from 0 to 1 and is null when the passage was found only by its exact words. limit is up to 10 passages and defaults to 5. An empty data means nothing in the knowledge answers it. It needs knowledge:read.

KnowledgePassageobject, 8 fields
  • objectenumrequired

    knowledge_passage

  • collectionIdstringrequired

    Example kbc_2LpX0x8bVw1TqS9mYp3RkL

  • collectionNamestringrequired

    Example FAQ

  • documentIdstringrequired

    Example kbd_02y0e5MANqacVbmtn1YyeJ

  • documentNamestringrequired

    Example returns.pdf

  • sourceUrlstring or nullrequired

    Where the document came from, when it has an address.

  • textstringrequired

    The passage of the document.

  • scorenumber or nullrequired

    How close the passage is in meaning, from 0 to 1. It is null when the passage was found only by its exact words.

Good practice

  • Start without team-questions:write: read the draft, then paste it where your team answers.
  • Ask Claude to quote the document of each passage, so you can check the source.
  • Keep the knowledge current. Claude answers with what the collections say, and with nothing else.
  • Remove the connection from Developers in the dashboard when you stop using it.

What's next

  • Approve agent actions and answer the team to answer a question by API.
  • Knowledge to load the documents Claude searches.
  • MCP server for the other tools Claude can use.
Approve agent actionsConnect your back office
On this page
  • Connect Claude
  • Permissions to mark
  • Ask for the work
  • What Claude reads
    • The context of a question
    • Search the knowledge
  • Good practice
  • What's next
curl https://api.lelemon.cl/v2/team-questions/tqn_5RvP2aKq9XwLmN3tYbZc01/context \ -H "Authorization: Bearer $LELEMON_API_KEY"
curl https://api.lelemon.cl/v2/knowledge-collections/search \ -H "Authorization: Bearer $LELEMON_API_KEY" \ --json '{ "query": "What is the return policy?", "limit": 5 }'