No content in presentation

I use google slides API in openclaw , try to create slides with AI, but there is no content in file. Any clue? Thank you.

Hi, could you please try the following curl commands or ask openclaw?

Command 1: Create presentation
curl -X POST 'https://gateway.maton.ai/google-slides/v1/presentations' \
  -H "Authorization: Bearer $MATON_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"title": "Test Presentation"}'

Command 2: Update first slide with content
curl -X POST 'https://gateway.maton.ai/google-slides/v1/presentations/{PRESENTATION_ID}:batchUpdate' \
  -H "Authorization: Bearer $MATON_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "requests": [
      {"insertText": {"objectId": "i0", "text": "Hello from API test!", "insertionIndex": 0}},
      {"insertText": {"objectId": "i1", "text": "This is the subtitle content", "insertionIndex": 0}}
    ]
  }'

Command 3: Add a new slide with content
curl -X POST 'https://gateway.maton.ai/google-slides/v1/presentations/{PRESENTATION_ID}:batchUpdate' \
  -H "Authorization: Bearer $MATON_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "requests": [
      {
        "createSlide": {
          "objectId": "slide_002",
          "slideLayoutReference": {"predefinedLayout": "TITLE_AND_BODY"},
          "placeholderIdMappings": [
            {"layoutPlaceholder": {"type": "TITLE"}, "objectId": "slide_002_title"},
            {"layoutPlaceholder": {"type": "BODY"}, "objectId": "slide_002_body"}
          ]
        }
      },
      {"insertText": {"objectId": "slide_002_title", "text": "Second Slide Title", "insertionIndex": 0}},
      {"insertText": {"objectId": "slide_002_body", "text": "This is the body content of the second slide.", "insertionIndex": 0}}
    ]
  }'