Assistant
Continue a pending browser action after verified human completion in Live Preview
Continue a pending browser action after verified human completion in Live Preview. The request is scoped to Assistant threads and content accessible to the authenticated caller.
POST
/
api
/
v1
/
assistant
/
threads
/
{id}
/
actions
/
{actionId}
/
browser-completion
Continue a pending browser action after verified human completion in Live Preview
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/actions/{actionId}/browser-completion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"liveSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"controlEpoch": 2
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
liveSessionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
controlEpoch: 2
})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/actions/{actionId}/browser-completion', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/actions/{actionId}/browser-completion"
payload = {
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"liveSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"controlEpoch": 2
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"thread": {
"assistantThreadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"kind": "conversation",
"title": "<string>"
},
"output": {
"type": "text",
"text": "<string>",
"json": {}
},
"message": {},
"assistantMessage": {},
"noticeMessages": [
{}
],
"actionRequired": {},
"assistantExecutionPlanId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"executionPlan": {},
"executionJournal": {},
"workerProgress": [
{}
]
}Body
application/json
Response
Continues the assistant turn after verified human completion. Request text/event-stream for live progress or receive the completed turn as JSON.
⌘I
Continue a pending browser action after verified human completion in Live Preview
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/actions/{actionId}/browser-completion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"liveSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"controlEpoch": 2
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
liveSessionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
controlEpoch: 2
})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/actions/{actionId}/browser-completion', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/actions/{actionId}/browser-completion"
payload = {
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"liveSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"controlEpoch": 2
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"thread": {
"assistantThreadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"kind": "conversation",
"title": "<string>"
},
"output": {
"type": "text",
"text": "<string>",
"json": {}
},
"message": {},
"assistantMessage": {},
"noticeMessages": [
{}
],
"actionRequired": {},
"assistantExecutionPlanId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"executionPlan": {},
"executionJournal": {},
"workerProgress": [
{}
]
}
