Create Agent
curl --request POST \
--url https://api.formbharo.artpark.ai/api/v1/agents \
--header 'Content-Type: application/json' \
--data '
{
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": [
"<string>"
],
"name": "<string>",
"options": [
"<string>"
],
"required": true,
"retry_config": {
"allow_retries": true,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": [
"<string>"
],
"until_answered": false
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
'import requests
url = "https://api.formbharo.artpark.ai/api/v1/agents"
payload = {
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": ["<string>"],
"name": "<string>",
"options": ["<string>"],
"required": True,
"retry_config": {
"allow_retries": True,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": ["<string>"],
"until_answered": False
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"workspace_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Agents
Create Agent
Create a new agent with the given title and questions.
POST
/
api
/
v1
/
agents
Create Agent
curl --request POST \
--url https://api.formbharo.artpark.ai/api/v1/agents \
--header 'Content-Type: application/json' \
--data '
{
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": [
"<string>"
],
"name": "<string>",
"options": [
"<string>"
],
"required": true,
"retry_config": {
"allow_retries": true,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": [
"<string>"
],
"until_answered": false
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
'import requests
url = "https://api.formbharo.artpark.ai/api/v1/agents"
payload = {
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": ["<string>"],
"name": "<string>",
"options": ["<string>"],
"required": True,
"retry_config": {
"allow_retries": True,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": ["<string>"],
"until_answered": False
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"workspace_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Which letters saved text answers are written in. roman writes them in Latin letters, spelled out by sound and never translated. agent_language writes them in the letters of the agent's own language. Numbers and dates stay as digits either way.
Available options:
roman, agent_language Available options:
fixed, llm Show child attributes
Show child attributes