POST
/
ai
/
integrate
curl --request POST \
  --url https://api.sol.com/v1/ai/integrate \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-4",
  "messages": [
    {
      "role": "user",
      "content": "Draft an email welcoming Tara to the platform."
    }
  ],
  "tools": [
    "create_email_draft"
  ],
  "tool_choice": "auto"
}'
{
  "responseId": "response-45678",
  "tool_calls": [
    {
      "toolId": "tool-6789",
      "params": {
        "from_email": "noreply@sol.com",
        "to_email": "tara@sol.com"
      }
    }
  ],
  "status": "tools_selected"
}

Body

application/json

Response

200 - application/json

AI response with selected tool(s)

The response is of type object.