This is preview documentation. The official release is not yet available.
1. Create a cloud Agent
- Open DESIGN → Agents and create “Notes assistant”.
- Select AgentScope Managed as Runtime. Leave Model empty to use the administrator’s default model.
- Enter the Instructions below, choose an available Environment in Advanced settings, and save.
Test quickly: start a Chat in the console
Open WORK → Chat → New chat, select “Notes assistant” and send:
Chat interface with fixed demonstration data. Your Agent name and messages will match the tutorial inputs.
2. Publish the Agent as an API service
Return to the Agent’s detail page and open Connections → Published APIs. Select New Endpoint under Publish as API:- Set Name to “Notes assistant API”, Slug to
notes-assistant, and Mode to Conversation. - Select Create & publish, confirm
publishedstatus, and save the generated API key. - Use Test API to verify a request. API integration examples provides submission, status and event examples for the release.
BASE_URL to your Gateway address without a trailing / and ENDPOINT_TOKEN to the new API key. Submit a conversation turn:
202 Accepted and invocation identifiers. Example response fields follow; use the actual IDs and status returned:
eventsUrl and statusUrl into the variables below. Submission and SSE subscription are separate steps:
invocationId query parameter. Send subsequent messages to /invoke/v1/conversations/{conversationId}/turns with a new Idempotency-Key. Reuse the original key and content only when retrying the same submission.
Your console Agent is now callable by applications. See Endpoints for contracts, authentication and error handling.
3. Register an Agent developed with AgentScope
Keep an existing AgentScope Java application running in its own process and register it as an External Agent. This example uses HTTP registration with a standard Service deployment. Add the extension dependency. Setagentscope.version to a published SDK version matching your application:
Add this fragment after initializing your Agent;
agent is the Agent object you already created:
report-service appears in DESIGN → Agents. Inspect its instance and contract address. Run a conversation in the application, then check the Session information exposed by the adapter. Both application-to-Service and control-plane-to-application connectivity are required.
This registers the application and exposes its Session contract. Issue/Team dispatch additionally requires a task execution entry such as AgentTaskStarter; this fragment does not automatically provide task dispatch or live event streaming. See External Agent for Python integration and ASDP deployment requirements. For the next step, start with verified Managed Agents, then add task-capable External or Hosted members individually.
4. Orchestrate Agents together
Use a Team for dynamic collaboration. Keep “Notes assistant” and create a Managed “Review assistant” using step 1. Give it these Instructions: “Check that the supplied material supports every conclusion. Identify missing owners, deadlines and unresolved details.” Create “Meeting team” in DESIGN → Teams. Select “Notes assistant” as Leader Agent and add “Review assistant” under Additional members. Set the coordination instructions:Publish a standard Agent service with the same SSE subscription pattern
Under the Team’s Connections → Publish as API → New Endpoint, createmeeting-team, select Create & publish, and save this Endpoint’s own API key. Teams use Job mode. For a Workflow, first publish a revision and expose that revision as a Job Endpoint.
eventsUrl using text/event-stream, and query statusUrl. Reuse the SSE commands from step 2 with the current URLs and Team API key.
The shared integration pattern is Endpoint authentication, request submission and SSE subscription. Conversations stream turn events; Jobs stream orchestration events. Their request bodies, event contents and result semantics differ. To use the same Job contract for an individual Agent and a Team/Workflow, publish the individual Agent in Job mode too.
When a Job reaches completed, read invocation.result in the status response. Handle failed, cancelled and timed_out as unsuccessful outcomes. 202 Accepted only acknowledges submission; after an SSE disconnect, query status to determine execution progress.
Handle work through console Issues
- Create “Organize meeting actions” in WORK → Issues. Include the notes and require a list of tasks, owners, deadlines and open questions.
- Assign “Meeting team”, review Sharing, and submit the work. You can also start from Chat’s Create issue and select the Team.
- Follow discussion, Task map and Executions. Check that the Leader delegates review, the member returns findings, and the Leader consolidates them. Read the actual comments and Artifacts.
- For human-review work, open WORK → Inbox → Review result when the Issue reaches In review. Choose Accept result when satisfied, or Request changes with the missing details.