根據提交的關鍵字、字數、文案數,擴寫出行銷文案。由於中文的特殊性,輸出文案字數可能與需求字數有出入。提交任務成功後,根據 JobId 呼叫 GetSmartHandleJob 介面取得任務狀態與結果。
介面說明
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:SubmitTextGenerateJob |
create |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Title |
string |
否 |
任務標題 - 長度不超過 128 位元組。 - UTF8 編碼。 |
Test Title |
| Description |
string |
否 |
任務描述,長度不超過 1024 位元組(UTF8 編碼)。 |
Test Description |
| Type |
string |
否 |
任務類型。列舉值:
枚舉值:
|
MarketingCopy |
| GenerateConfig |
string |
否 |
生成設定。Type = Title 或 MarketingCopy 時,需填寫以下欄位:
Type = StoryboardScript 時,需填寫以下欄位:
|
{"keywords":"New store cake,Animal cream","textLength":100,"targetCount":3} or {"originText": "A new cake shop has opened on the street,Selling cream cakes,Fruit cake,Bread,Muffins, etc..A coffee shop has opened across from the cake shop,An endless stream of customers."} |
| UserData |
string |
否 |
自訂設定,Json 格式,長度限制為 512 位元組。支援自訂回呼位址設定。 |
{"NotifyAddress":"http://xx.xx.xxx"}或{"NotifyAddress":"https://xx.xx.xxx"}或{"NotifyAddress":"ice-callback-demo"} |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
智慧任務 ID。 |
****d80e4e4044975745c14b**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****d80e4e4044975745c14b****"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。