Creates a new conversation. Conversations are auto-completed after 24 hours.
Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage.
For Automated Agent Stage, there will be a dialogflow agent responding to user queries.
For Assist Stage, there's no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation.
If Conversation.conversation_profile is configured for a dialogflow agent, conversation will start from Automated Agent Stage, otherwise, it will start from Assist Stage. And during Automated Agent Stage, once an Intent with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.
HTTP request
POST https://{endpoint}/v2beta1/{parent=projects/*/locations/*}/conversations
Required. Resource identifier of the project creating the conversation. Format: projects/<Project ID>/locations/<Location ID>.
Authorization requires the following IAM permission on the specified resource parent:
dialogflow.conversations.create
Query parameters
Parameters
conversationId
string
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you.
The conversation ID must be compliant with the regression formula [a-zA-Z][a-zA-Z0-9_-]* with the characters length in range of [3,64]. If the field is provided, the caller is responsible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
Request body
The request body contains an instance of Conversation.
Response body
If successful, the response body contains a newly created instance of Conversation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis document outlines how to create a new conversation, which auto-completes after 24 hours, within a system that supports both an Automated Agent Stage with a dialogflow agent and an Assist Stage without one.\u003c/p\u003e\n"],["\u003cp\u003eThe process utilizes an HTTP POST request to a specific endpoint with a URL structure that includes path parameters like project and location IDs, as well as an optional conversation ID as a query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a \u003ccode\u003eConversation\u003c/code\u003e instance, while a successful response returns a newly created \u003ccode\u003eConversation\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eCreating a conversation requires the \u003ccode\u003edialogflow.conversations.create\u003c/code\u003e IAM permission on the parent resource and one of two specified OAuth scopes for authorization.\u003c/p\u003e\n"],["\u003cp\u003eThe conversation starts from \u003ccode\u003eAutomated Agent Stage\u003c/code\u003e if configured for a dialogflow agent or \u003ccode\u003eAssist Stage\u003c/code\u003e otherwise, and once an intent with \u003ccode\u003eIntent.live_agent_handoff\u003c/code\u003e is triggered, it transfers from \u003ccode\u003eAutomated Agent Stage\u003c/code\u003e to \u003ccode\u003eAssist Stage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]