SalesEpoch-Open Api
  1. AI
SalesEpoch-Open Api
  • 在线文档使用说明
  • 群发(v1)
    • 新建群发任务
      POST
  • 客户导入
    • 客户单坐席导入接口
      PUT
    • 客户单坐席导入接口(不带导入池)
      POST
    • 客户批量导入接口(带导入池)
      POST
  • 群发(V2)
    • 手机端群发个人-单目标单内容
      POST
    • 手机端群发个人-单目标多内容
      POST
    • 手机端群发个人-多目标单内容
      POST
    • 手机端群发个人-多目标多内容
      POST
    • 批量更新客服号信息(客服号需在线)
      POST
    • 查询群发任务执行状态
      POST
    • 查询在线的坐席、客服号
      POST
    • 查询客服号最新状态
      POST
    • 手机端群发个人-多目标多内容 Copy
      POST
  • 筛号测试
    • 创建筛号接口
      POST
    • 查询结果接口
      GET
  • AI
    • AI翻译接口
      POST
  1. AI

AI翻译接口

线上环境
http://wascrm.socialepoch.com
线上环境
http://wascrm.socialepoch.com
POST
http://mid.socialepoch.com/api/seAi//ai-api/prompt/translate

请求参数

Header 参数
Content-Type
string 
必需
默认值:
application/json
Body 参数application/json
tenantId
string 
公司id
必需
userId
string 
用户id
必需
promptType
string 
必需
AI提示类型 值: 40 外部接口
prompt
string 
翻译内容
必需
platformId
integer 
必需
平台id 5、外部API
source
string 
源语言
可选
target
string 
必需
model
string 
必需
模型 gpt-3.5-turbo
示例
{
    "tenantId":"11",
    "userId":"22",
    "promptType":"40",
    "prompt":"欲买桂花同载酒",
    "platformId":5,
    "source":"ja",
    "target":"en",
    "model":"gpt-3.5-turbo"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://mid.socialepoch.com/api/seAi//ai-api/prompt/translate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenantId":"11",
    "userId":"22",
    "promptType":"40",
    "prompt":"欲买桂花同载酒",
    "platformId":5,
    "source":"ja",
    "target":"en",
    "model":"gpt-3.5-turbo"
}'

返回响应

🟢200OK
application/json
Body
code
integer 
状态码
必需
message
string 
提示信息
必需
data
string 
内容
必需
示例
{
    "code": 200,
    "message": "Success",
    "data": "To buy osmanthus flowers and carry wine together."
}
上一页
查询结果接口
Built with