Thank you for your help, we are building a reel video script generation application called Reely with Make (formerly Integromat) + Webflow.
Currently, we are trying to publish a new Live item immediately with the following configuration, but every time we try to do so, we get “400 Bad Request (ValidationError: Invalid request body)” and the submission fails.
Scenario Configuration
Webhook (Custom webhook)
JSON Parse
OpenAI (ChatGPT module)
HTTP module (Webflow API)
HTTP module configuration
Method: POST
URL: https://api.webflow.com/v2/sites/[site ID]/collections/[collection ID]/items/live
Headers: Content-Type: application/json + authentication Headers
Body type: Raw (JSON)
Request content:
{
“fields”: {
“name”: “ReelScript_” + formatDate(now; “yyyyMMdd_HHmmss”) + “_” + randomText(4),
“slug”: " reelscript-" + formatDate(now; “yyyyMMdd_HHmmss”),
“script-content”: 6.Choices[:Message.Content],
“user”: 1.field,
“date”: now,
“script- plain-text”: 6.Choices[:Message.Content]
}
}
お世話になります。Make(旧Integromat)+WebflowでReelyというリール動画台本生成アプリを構築中です。
現状、以下の構成で新規Liveアイテムを即時公開しようと試みていますが、毎回「400 Bad Request(ValidationError: Invalid request body)」が発生し、送信に失敗しています。
シナリオ構成
- Webhook(Custom webhook)
- JSON Parse
- OpenAI(ChatGPT モジュール)
- HTTP モジュール(Webflow API)
HTTP モジュール設定
- Method: POST
- URL:
https://api.webflow.com/v2/sites/[サイトID]/collections/[コレクションID]/items/live
- Headers:
Content-Type: application/json
+ 認証ヘッダ - Body type: Raw(JSON)
- Request content:
{
"fields": {
"name": "ReelScript_" + formatDate(now; "yyyyMMdd_HHmmss") + "_" + randomText(4),
"slug": "reelscript-" + formatDate(now; "yyyyMMdd_HHmmss"),
"script-content": 6.Choices[:Message.Content],
"user": 1.field,
"date": now,
"script-plain-text": 6.Choices[:Message.Content]
}
}