TrainingProject Text

Bulk Add Training Text

Add multiple text snippets or FAQs at once. For FAQs, you can choose to override existing answers based on the question. **Permission required:** Training > Write

Add multiple text snippets or FAQs at once. For FAQs, you can choose to override existing answers based on the question.

Permission required: Training > Write

POST
/bulkCreateProjectText

Authorization

bearerToken

AuthorizationBearer <token>

API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.

In: header

Request Body

application/json

project_uid*string

Project identifier.

type*string

Content type.

Value in"faq" | "text"
data*string

JSON string of array containing objects with detail and short_text fields.

override?boolean

Override existing FAQs with same question.

Defaultfalse

Response Body

application/json

curl -X POST "https://api.yourgpt.ai/chatbot/v1/bulkCreateProjectText" \  -H "Content-Type: application/json" \  -d '{    "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",    "type": "faq",    "data": "[{\"short_text\":\"What is your return policy?\",\"detail\":\"You can return items within 30 days.\"}]"  }'
{
  "type": "RXSUCCESS",
  "message": "Data Created Successfully!",
  "data": [
    {
      "id": 2001,
      "short_text": "What is your return policy?",
      "detail": "You can return items within 30 days.",
      "type": "faq",
      "status": "pending"
    }
  ]
}