- SDK/API嵌入方案说明(请先阅读)
- 通用功能
- SDK嵌入方账户相关(前端组件嵌入)
- API嵌入方案(后端接口嵌入)
- 使用说明
- 步骤1:换取企业凭证+同步用户
- 步骤2:应用账户操作
- 步骤3: 获取应用动作需要字段参数
- 步骤4:执行指定应用动作
- 高级:流程创建
- 企业成员相关
- 子流程对接方案相关
- 数据表
执行动作(嵌入方案)
POST
/api/openapi/action_run_nlp
最后修改时间:2024-08-08 02:34:36
请求参数
Body 参数application/json
corp_token
string
必需
timestamp
integer
必需
app_id
integer
应用id
action_key
string
动作key
account_id
integer
账户id
data
object
动作参数
app_version
string
可选
company_identification
string
企业唯一标识
sign
string
可选
示例
{
"corp_token": "proident Ut in velit",
"timestamp": 818383959993,
"app_id": 4,
"action_key": "mollit in velit",
"account_id": 50,
"data": {},
"preview_only": true,
"app_version": "Ut laborum aliquip eu",
"company_identification": "20",
"sign": "incididunt aute in"
}
示例代码
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://developer.jijyun.cn/api/openapi/action_run_nlp' \
--header 'Content-Type: application/json' \
--data-raw '{
"corp_token": "proident Ut in velit",
"timestamp": 818383959993,
"app_id": 4,
"action_key": "mollit in velit",
"account_id": 50,
"data": {},
"preview_only": true,
"app_version": "Ut laborum aliquip eu",
"company_identification": "20",
"sign": "incididunt aute in"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
action_used
string
必需
action_used_id
integer
必需
additional_results
array[string]
必需
assistant_hint
null
必需
error
null
必需
id
string
必需
input_params
object
必需
result
null
必需
result_field_labels
object
必需
review_url
string
必需
status
string
必需
msg
string
必需
示例
{
"code": 0,
"data": {
"action_used": "AI将根据返回的字段名称,进行AI语义化处理并返回",
"action_used_id": 1000925,
"additional_results": [],
"assistant_hint": null,
"error": null,
"id": "1cb59e57-92fa-49f4-bc6f-c2fc1dad69f5",
"input_params": {
"state": "success"
},
"result": null,
"result_field_labels": {},
"status": "success"
},
"msg": "成功"
}
修改于 2024-08-08 02:34:36