cURL
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" }
Integrates with an AI model (e.g., GPT-4) to generate responses and select tools in Sol.
AI model to use (e.g., gpt-4)
"gpt-4"
List of messages for the AI model
Show child attributes
Available tools for the AI to select from
How the AI should choose tools (e.g., auto)
"auto"
AI response with selected tool(s)
"response-45678"
"tools_selected"