Skip to main content
GET
/
agents
/
{agent_id}
/
workflow
/
code
python
from notte_sdk import NotteClient

notte = NotteClient()

agent = notte.Agent(agent_id="<agent_id>")
print(agent.workflow.code())
{
  "python_script": "<string>",
  "json_actions": [
    {}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.notte.cc/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-notte-request-origin
string | null
x-notte-sdk-version
string | null

Path Parameters

agent_id
string
required

Query Parameters

as_workflow
boolean
required

Whether to return code as standalone workflow or just relevant instructions

infer_response_format
boolean
default:false

Whether to infer response_format schema for scrape calls that have instructions but no schema

Response

Successful Response

python_script
string
required

Python script to replicate agent steps

json_actions
Json Actions · object[]
required

Json actions to replicate agent steps