Start a conversation with Fin
Initialize Fin by passing it the user's message along with conversation history and user details.
These additional pieces of context will be used by Fin to provide a better and more contextual answer to the user.
{% admonition type="warning" %} Please reach out to your accounts team to discuss access. {% /admonition %}
Once Fin is initialized, it progresses through a series of statuses such as thinking, awaiting_user_reply, or resolved before ending with a status of complete.
During this workflow, the client should allow Fin to continue uninterrupted until a final complete status is returned via webhook, at which point control of the conversation passes back to the client.
Headers
Intercom API version.</br>By default, it's equal to the version set in the app package.
Request body
Example request
{
"conversation_id": "ext-123",
"message": {
"author": "user",
"body": "How can I see my account details?",
"timestamp": "2025-01-24T10:01:20.000Z",
"timestamp_ms": "2025-01-24T10:01:20.456Z"
},
"user": {
"id": "123456",
"name": "John Doe",
"email": "john.doe@example.com",
"attributes": {
"plan_type": "Pro",
"subscription_status": "active"
}
},
"attachments": [
{
"type": "url",
"url": "https://example.com/document.pdf",
"name": "screenshot.png",
"content_type": "image/png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk..."
}
],
"conversation_metadata": {
"history": [
{
"author": "user",
"body": "How can I see my account details?",
"timestamp": "2025-01-24T10:01:20.000Z",
"timestamp_ms": "2025-01-24T10:01:20.456Z"
}
],
"attributes": {
"priority_level": "high",
"department": "sales"
}
}
}Response
Fin conversation started successfully
Example response
{
"conversation_id": "ext-123",
"user_id": "user-456",
"status": "thinking",
"created_at_ms": "2025-01-24T10:00:00.123Z",
"errors": {
"user": {
"attributes": {
"invalid_attr": "User attribute 'invalid_attr' does not exist"
}
},
"conversation": {
"attributes": {
"bad_attr": "Conversation attribute 'bad_attr' does not exist"
}
}
},
"sse_subscription_url": "https://primary-realtime.intercom-messenger.com/event-stream?channels=fin_agent_api:app123:ext-123&accessToken=eyJhbG...&rewind=2m"
}