Questions and approvals
Sometimes Minded needs you before it goes on: a question, an approval, or an app to connect.
You can answer from Claude, ChatGPT or your own code, or in the Minded chat. The first answer wins.
When Minded asks
read_chat returns status: "waiting_for_answer", and its messages hold the question:
| Question field | |
|---|---|
waitId | Pass it to answer_question |
question | What Minded asks, or what it wants to do |
choices | The choices Minded offers. For an approval: Allow and Deny |
questions | When Minded asks several questions at once: each one's question, choices and multiSelect. The first is also question and choices |
approval | Only for an approval: the call it holds back, with its tool, kind and input |
The same question shows in the Minded chat.
answer_question
Answers a question or an approval. Needs Chats: Read and write. It is marked as a write, so Claude and ChatGPT may ask you before calling it.
| Input | ||
|---|---|---|
chatId | text, required | The chat that asked |
waitId | text, required | From the question |
answer | text | For a question: one of the choices, or your own words. For an approval: Allow or Deny |
answers | object | When Minded asked several questions at once: each question's answer, keyed by the question's words. Give this instead of answer |
clientId | text, required | Your own id for this answer, new for each answer. Sent again after a lost reply, the answer lands once |
It returns chatId, seq and open, as send_prompt does. Your answer lands as your own, as if you answered in Minded. Minded carries on, and you keep reading with read_chat.
await minded.callTool({
name: 'answer_question',
arguments: { chatId, waitId: question.waitId, answer: 'Customer success', clientId: crypto.randomUUID() },
});Approvals
An approval is Minded asking for a yes before a step, such as sending a refund or emailing a list of customers.
- Allow: Minded takes the step.
- Deny: Minded does not take the step. What it did so far stays in the Minded chat.
Already answered in Minded
A question is open in both places at once. Whichever answer reaches Minded first is the one Minded uses.
If someone already answered in Minded, your answer_question call is refused, saying the question is already answered. Tell the member it was answered in Minded, then keep reading with read_chat. Sending the same clientId again is a retry, never a second answer.
Done in Minded
Some asks are done in the Minded chat, never through the API. Give the member the open link from read_chat: it opens the chat.
- An app to connect. When a prompt needs an app that is not connected (a help desk, an inbox), Minded asks to connect it. The member connects the app in the Minded chat, with their own sign-in. Apps never connect through the API: an answer while the app is still not connected is refused.
- Taking control of the browser. When Minded hands the member the browser (to sign in to a site),
answer_questionis refused and names the chat's link.
Once the member is done in Minded, Minded carries on. Keep reading with read_chat.