App Logo
muse.ai

Send a message in a Muse chat (muse.ai)

Automatically send a message in a Muse chat (muse.ai) on muse.ai. Continue a chat of the signed-in Muse account (Meta's personal agent at muse.ai): send one message in the chat you name, the main chat or a side chat, wait until Muse ends its reply (up to about 3 minutes), and return what Muse posted. Muse answers with the whole chat as its context. The output has the same fields as muse.ai/ask: `answer` joins the text of every reply message of the turn, `messages` lists the turn in order (`reply` items are Muse's text messages, `widget` items are the cards it shows, such as a browser task or shopping results), and `sources` are the pages Muse's searches gave it, deduplicated by url. Muse can give a task to its own browser and keep working after its reply. Then `pending` is true and the answer is Muse's first reply: Muse posts its result later in the same chat, which muse.ai/get_chat reads. `pending` is null when the browser hides Muse's activity panel, so the run cannot tell. Get a chat's id from muse.ai/list_chats, muse.ai/search_chats, or the threadId of muse.ai/ask. An id the account has no chat for fails with an error that says so, and nothing is sent. Requires a signed-in session: a signed-out browser fails at once with an error that says so.

Inputs

chat_id required

The chat to send the message in: an id from muse.ai/list_chats or muse.ai/search_chats, or the threadId of muse.ai/ask.

message required

The message to send. Line breaks are kept. It must hold at least one character that is not a space.

Output

url required

Where the chat opens on muse.ai: https://muse.ai/ for the main chat, https://muse.ai/thread/<chatId> for a side chat.

answer required

The markdown of every reply message of the turn, in order, separated by a blank line. Links keep their real address.

chatId required

The id of the chat the message was sent in.

pending required

True when Muse is still working on the message as the run returns: the answer is then its first reply, and Muse posts its result later in the chat. False when the work is done or used no tool. Null when the browser hides Muse's activity panel, so the run cannot tell.

sources required

Every source of the turn's messages, deduplicated by url, in order of first appearance.

messages required

What Muse posted in reply to the message when the run returned, in order.

FAQ

Continue a chat of the signed-in Muse account (Meta's personal agent at muse.ai): send one message in the chat you name, the main chat or a side chat, wait until Muse ends its reply (up to about 3 minutes), and return what Muse posted. Muse answers with the whole chat as its context. The output has the same fields as muse.ai/ask: `answer` joins the text of every reply message of the turn, `messages` lists the turn in order (`reply` items are Muse's text messages, `widget` items are the cards it shows, such as a browser task or shopping results), and `sources` are the pages Muse's searches gave it, deduplicated by url.
Ask an AI agent connected to Reduck to run reduck/muse.ai/send_message, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/muse.ai/send_message
You do not need one. "Send a message in a Muse chat (muse.ai)" drives the real muse.ai pages in a browser, so it works whether or not muse.ai offers an API for this.
Required: chat_id, message.
It returns url, answer, chatId, pending, sources, messages.
Yes. It acts as you on muse.ai: in your browser it reuses your session, and on a cloud browser it loads your Auth session cookies for muse.ai.
It makes changes on muse.ai, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/muse.ai/send_message, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/muse.ai/send_message
It is one of Reduck's official scripts.

Start building not clicking