Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Plain API key for the machine user this agent runs as. Needs the Custom agent toggle on, plus
# Plain API key for the machine user this agent runs as. Needs the Connected agent type, plus
# threadDiscussion:read, threadDiscussion:edit, threadDiscussionMessage:create,
# threadDiscussionMessage:edit, thread:read and thread:reply.
PLAIN_API_KEY=
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# example-aisdk-assistant-agent

A Plain custom agent built on the [Vercel AI SDK](https://ai-sdk.dev), with no framework in between.
A Plain agent built on the [Vercel AI SDK](https://ai-sdk.dev), with no framework in between.

The protocol is documented [here](https://www.plain.com/docs/agents/internal-agent).

Expand All @@ -9,7 +9,7 @@ This example was `example-aisdk-agent` in `team-plain/example-internal-agents` u
## Setting it up

1. Create a machine user under [Settings → Machine users](https://app.plain.com/~/settings/machine-users/)
and give it an API key. Turn the "Custom agent" toggle on.
and give it an API key. Set its **Type** to **Connected agent**.

Permissions: `threadDiscussion:read`, `threadDiscussion:edit`,
`threadDiscussionMessage:create`, `threadDiscussionMessage:edit`, `thread:read` and
Expand Down
2 changes: 1 addition & 1 deletion src/plain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class Plain {
this.assertOK("sendDiscussionMessage", result.error ?? null);
}

// Plain runs no session for a custom agent, so without this the discussion looks permanently
// Plain runs no session for a connected agent, so without this the discussion looks permanently
// idle. Posting the reply is what marks it unread, not this.
async setDiscussionAgentStatus(
discussionID: string,
Expand Down
Loading