Adventists - API Doc
  1. Template
Adventists - API Doc
  • Overall
  • v2.5 Updates
  • Quick Start
  • TCP - Chat With Voice
    • Connect with TCP
    • Connect with VAD
    • Connect with MCP
    • Get Token
      POST
  • Settings Management
    • Args Description
    • Template
      • Query Public Template List
        POST
      • Query Current Org Template (including private and public template)
        POST
      • Create Template
        POST
      • Query Template By ID
        POST
      • Modify Template
        POST
      • Delete Template
        POST
      • Send Memories To Template
        POST
    • NPC
      • Create Npc With Template
      • Create Npc Without Template
      • Query Npc By Id
      • Modify Npc
      • Delete Npc
      • Send Memories To Npc
      • Query Memories From Npc
    • Skills Book
      • Query Skills Book List
      • Start Create Skills Book Task
      • Upload Skills Book Content
      • Finish Create Skills Book Task
      • Query Progress Of Create Skills Book Task
    • Voice Texture
      • Upload Voice Texture
        • Upload Voice
        • Query Status Of Uploading Voice
      • Query Voice List
  • Other Chat Functions
    • Upload Pictures
      POST
  1. Template

Create Template

POST
/template

请求参数

Header 参数

Body 参数application/json

示例
{
    "action": "create_template",
    "name": "string",
    "mbti_type": "string",
    "love_type": "string",
    "emotion_system": "string",
    "style": "string",
    "person": "string",
    "emotion_responses": {
        "<情绪名称>": [
            "string"
        ]
    },
    "relationship": {
        "<人物名称>": {
            "alias": [
                "string"
            ],
            "name": "string",
            "remark": "string",
            "title": [
                "string"
            ]
        }
    },
    "start_speech": "string",
    "temp": "string",
    "skill_ids": "string",
    "voice_id": "string",
    "functions": "string",
    "public": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://v1.adventists.ai/template' \
--header 'api-key: AN26Q7MVO04RS6VWIWTE8OQ4BD6DZR98' \
--header 'org-id: WOQSOC' \
--header 'Content-Type: application/json' \
--data-raw '{
    "action": "create_template",
    "name": "string",
    "mbti_type": "string",
    "love_type": "string",
    "emotion_system": "string",
    "style": "string",
    "person": "string",
    "emotion_responses": {
        "<情绪名称>": [
            "string"
        ]
    },
    "relationship": {
        "<人物名称>": {
            "alias": [
                "string"
            ],
            "name": "string",
            "remark": "string",
            "title": [
                "string"
            ]
        }
    },
    "start_speech": "string",
    "temp": "string",
    "skill_ids": "string",
    "voice_id": "string",
    "functions": "string",
    "public": "string"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "data": "WOQSOCaf41326dde6c42318addeb5c1fe9e44c",
    "message": "模板WOQSOCaf41326dde6c42318addeb5c1fe9e44c已创建。",
    "status": "success"
}
修改于 2025-09-12 13:02:28
上一页
Query Current Org Template (including private and public template)
下一页
Query Template By ID
Built with