Skip to main content

genie_conversations

Creates, updates, deletes, gets or lists a genie_conversations resource.

Overview

Namegenie_conversations
TypeResource
Iddatabricks_workspace.dashboards.genie_conversations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
conversationsarray
next_page_tokenstringToken to get the next page of results

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectspace_id, deployment_nameinclude_all, page_size, page_tokenGet a list of conversations in a Genie Space.
deletedeletespace_id, conversation_id, deployment_nameDelete a conversation.
startexecspace_id, deployment_name, contentStart a new conversation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
conversation_idstringThe ID of the conversation to delete.
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
space_idstringThe ID associated with the Genie space where you want to start a conversation.
include_allbooleanInclude all conversations in the space across all users. Requires at least CAN MANAGE permission on the space.
page_sizeintegerMaximum number of conversations to return per page
page_tokenstringToken to get the next page of results

SELECT examples

Get a list of conversations in a Genie Space.

SELECT
conversations,
next_page_token
FROM databricks_workspace.dashboards.genie_conversations
WHERE space_id = '{{ space_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND include_all = '{{ include_all }}'
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;

DELETE examples

Delete a conversation.

DELETE FROM databricks_workspace.dashboards.genie_conversations
WHERE space_id = '{{ space_id }}' --required
AND conversation_id = '{{ conversation_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;

Lifecycle Methods

Start a new conversation.

EXEC databricks_workspace.dashboards.genie_conversations.start 
@space_id='{{ space_id }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"content": "{{ content }}"
}'
;