AskOne

v1.2.3
io.github.phuryn/askone Checked 3 days ago Published 1 month ago

Run AskOne live Q&A and polls with free AI moderation: start rooms, launch polls, draft a FAQ.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_rooms List rooms

List your organization's rooms, newest first. Each has its six-character code, status (prepared, open or closed) and counts: questions (approved and answered), pending (waiting for review), answered, participants and active. Use it to find the code the room tools take; create_room needs none and returns a new room's code. To reach older rooms, call again with cursor set to the returned next_cursor until next_cursor is null. Read-only; any AskOne API token can call it.

ParameterTypeDescription
cursorstringThe next_cursor value returned by the previous page
limitintegerPage size, 1-100 (default 50)

get_room_qa Room Q&A as a FAQ draft

Read a room's Q&A as one Markdown document ordered for a FAQ: answered questions first, then approved ones by votes, then waiting ones marked as pending, each with the host's written answer if any; hidden questions are never included. Use it to draft a FAQ or summarize a session; use get_room_questions instead when you need question ids (moderate_question and answer_question take them), JSON fields or newest-first order. It takes the room's six-character code (case-insensitive) from list_rooms, create_room or the room's join link askone.org/r/<code>; a room in another organization answers not_…

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>

get_room_questions Room questions (raw)

Read one page of a room's questions as JSON: id, body (the question), status (pending, approved or answered), votes, pinned flag and the host's written answer; hidden questions are never returned. Use it when you need question ids for moderate_question or answer_question, or want to page through a large room; use get_room_qa instead for a ready-made FAQ. sort=top puts waiting questions first, then approved and answered ones by votes; sort=recent puts the newest first. For the next page, call again with cursor set to the returned next_cursor until next_cursor is null. Question text comes from t…

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>
cursorstringThe next_cursor value returned by the previous page
limitintegerPage size, 1-100 (default 50)
sortstringtop (default) or recent

get_survey_results Poll and survey results

Read every survey in a room with its id, kind, status (draft, live or closed) and aggregate results: polls and quizzes are kind=choice with counts per option (a closed quiz also has correct_option_id), ratings have counts and an average, word clouds have words with counts and no options. Use it to report results and to get the survey_id that close_survey takes. It takes the room's six-character code (case-insensitive) from list_rooms, create_room or the room's join link askone.org/r/<code>; a room in another organization answers not_found. Quiz answer keys appear only after a survey closes; no…

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>

create_room Create a room

Create a Q&A room in your organization and open it to the audience at once; open=false prepares it so nobody can join until open_room. Use it before a session: it returns the room with its new code, join_url for the audience, projector_url for the wall and host_url for the console; add polls with create_survey. Rooms follow the organization's plan and branding; when all of its open rooms are in use the call fails with room_limit_reached, so close one with close_room first. Needs a token with rooms:write; pass a request_id UUID and resend the same one to retry safely after a lost reply.

ParameterTypeDescription
name *stringRoom name, 1-80 characters
descriptionstringOptional plain-text notes for the host, up to 2,000 characters
moderationstringai (default), human, or none
openbooleanDefault true; false creates a prepared room that admits nobody yet
request_idstringOptional UUID; resend the same one to retry safely after a lost reply

open_room Open or reopen a room

Open a prepared room, or reopen a closed one so the audience can join, ask and vote again; a room that is already open is returned unchanged. Use it after create_room with open=false, or to resume a session. It takes the room's six-character code (case-insensitive) from list_rooms, create_room or the room's join link askone.org/r/<code>; a room in another organization answers not_found. Returns the room and its links. Fails with room_limit_reached when all of the organization's open rooms are in use, so close one with close_room first. Needs rooms:write.

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>

close_room Close a room

Close an open room: the audience can no longer join, ask or vote, and every live survey in it closes at the same moment; questions and results stay readable. Use it when the session ends, then read the Q&A with get_room_qa; reopen it later with open_room. It takes the room's six-character code (case-insensitive) from list_rooms, create_room or the room's join link askone.org/r/<code>; a room in another organization answers not_found. A prepared room cannot be closed (room_not_open). Returns the room and its links. No email is sent. Needs rooms:write.

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>

create_survey Add and launch a poll

Add a poll, quiz, rating or word cloud to a room and launch it so the audience answers on their phones (launching needs an open room); launch=false saves a draft instead. Use it during a session to ask the audience something. type=poll takes 2-8 options (allow_multiple for several choices), quiz takes options plus correct_option (zero-based), rating takes scale 5 or 10, word_cloud takes no options. Results are shown to the audience by default; show_results=false keeps them private. Returns the survey with its id and the request_id; keep that request_id, because calling again with the same surv…

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>
question *stringThe question, 1-200 characters
type *string
allow_multiplebooleanPoll only: allow several choices
correct_optionintegerQuiz: zero-based index of the correct option
high_labelstringRating: optional label for the highest point
launchbooleanDefault true; false saves a draft
low_labelstringRating: optional label for the lowest point
optionsarrayPoll or quiz: 2-8 distinct options
request_idstringOptional UUID; resend the same one to retry safely after a lost reply
scaleRating: 5 (default) or 10 points
show_resultsbooleanDefault true: the audience may see results; false keeps them private. Screens show only the live surveys or the latest closed batch

close_survey Close a poll

Close a live poll, quiz, rating or word cloud so it stops taking answers; its results stay readable. Use it once a survey has collected its answers, calling it once per survey to close several, or use close_room to end every live survey together with the room. show_results sets whether the audience may see this survey's results (false hides them, true allows them); phones and the wall show the live surveys or the most recently closed batch, so an older survey does not return to the screen. Works on an already-closed survey too, but not on a draft. Get survey_id from get_survey_results. Returns…

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>
survey_id *stringThe survey's id from get_survey_results
show_resultsbooleanfalse hides this survey's results from the audience; true allows them, though screens show only the live surveys or the latest closed batch

moderate_question Approve or hide a question

Approve a waiting question so the room sees it, or hide it so nobody does (action=approve or hide). Hide accepts only waiting (pending) questions, so an approved question cannot be hidden here; approve accepts waiting questions and questions the AI hid. Use it in rooms with human or AI moderation, where new questions wait for review; get ids from get_room_questions. An AI-hidden question can be approved only by an id you already have, because reads never return hidden questions; a question a person hid cannot be restored. Returns the question's id and new status. Needs rooms:write.

ParameterTypeDescription
action *string
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>
question_id *stringQuestion id from get_room_questions

answer_question Mark a question answered

Mark an approved question as answered, optionally with a written answer of up to 1,000 characters that the audience sees under it. Use it as the host answers during or after a session; without answer, any written comment already saved is kept. Only approved or already-answered questions qualify, so approve a waiting one first with moderate_question. Get the question id from get_room_questions. It cannot be marked unanswered through these tools. Returns the question's id, status and answer. Needs rooms:write.

ParameterTypeDescription
code *stringThe room's six-character code, letters and digits, case-insensitive (ABC234 and abc234 are the same room): from list_rooms, create_room, or the end of the room's join link askone.org/r/<code>
question_id *stringQuestion id from get_room_questions
answerstringOptional written answer, up to 1,000 characters of plain text