Skip to main content
POST
/
groupChat
/
requestAIResponse
Request manual AI response
curl --request POST \
  --url http://api.superwize.ai/api/groupChat/requestAIResponse \
  --header 'Content-Type: application/json' \
  --data '
{
  "groupChatId": "grp_01JHKYX1B2CD123456789"
}
'
{
  "event": "message",
  "data": {
    "type": "message.created",
    "message": {
      "id": "obj_01JHKZ0PV2WX123456789",
      "type": "message",
      "role": "user",
      "content": "What are practical AI use-cases for students?",
      "parts": [
        {
          "type": "web_search_tool_call",
          "content": {
            "query": null,
            "num_results": null,
            "country": null,
            "safe_search": null
          }
        }
      ],
      "sender": {
        "id": "obj_01JHKZ0PV2WX123456789",
        "name": "Primary Key",
        "image": "https://cdn.superwize.ai/assets/avatars/user-1.png"
      },
      "createdAt": "2026-01-01T00:00:00.000Z"
    }
  },
  "id": "obj_01JHKZ0PV2WX123456789",
  "retry": 3000
}

Body

application/json
groupChatId
string
required

Response

AI response stream started.

event
any
required
data
object
required
id
string
retry
number