1. Packages
  2. Google Cloud Native
  3. API Docs
  4. dialogflow
  5. dialogflow/v2beta1
  6. Participant

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.dialogflow/v2beta1.Participant

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a new participant in a conversation. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.

Create Participant Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Participant(name: string, args: ParticipantArgs, opts?: CustomResourceOptions);
@overload
def Participant(resource_name: str,
                args: ParticipantArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Participant(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                conversation_id: Optional[str] = None,
                documents_metadata_filters: Optional[Mapping[str, str]] = None,
                location: Optional[str] = None,
                name: Optional[str] = None,
                obfuscated_external_user_id: Optional[str] = None,
                project: Optional[str] = None,
                role: Optional[ParticipantRole] = None)
func NewParticipant(ctx *Context, name string, args ParticipantArgs, opts ...ResourceOption) (*Participant, error)
public Participant(string name, ParticipantArgs args, CustomResourceOptions? opts = null)
public Participant(String name, ParticipantArgs args)
public Participant(String name, ParticipantArgs args, CustomResourceOptions options)
type: google-native:dialogflow/v2beta1:Participant
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ParticipantArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ParticipantArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ParticipantArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ParticipantArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ParticipantArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var google_nativeParticipantResource = new GoogleNative.Dialogflow.V2Beta1.Participant("google-nativeParticipantResource", new()
{
    ConversationId = "string",
    DocumentsMetadataFilters = 
    {
        { "string", "string" },
    },
    Location = "string",
    Name = "string",
    ObfuscatedExternalUserId = "string",
    Project = "string",
    Role = GoogleNative.Dialogflow.V2Beta1.ParticipantRole.RoleUnspecified,
});
Copy
example, err := dialogflowv2beta1.NewParticipant(ctx, "google-nativeParticipantResource", &dialogflowv2beta1.ParticipantArgs{
	ConversationId: pulumi.String("string"),
	DocumentsMetadataFilters: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Location:                 pulumi.String("string"),
	Name:                     pulumi.String("string"),
	ObfuscatedExternalUserId: pulumi.String("string"),
	Project:                  pulumi.String("string"),
	Role:                     dialogflowv2beta1.ParticipantRoleRoleUnspecified,
})
Copy
var google_nativeParticipantResource = new Participant("google-nativeParticipantResource", ParticipantArgs.builder()
    .conversationId("string")
    .documentsMetadataFilters(Map.of("string", "string"))
    .location("string")
    .name("string")
    .obfuscatedExternalUserId("string")
    .project("string")
    .role("ROLE_UNSPECIFIED")
    .build());
Copy
google_native_participant_resource = google_native.dialogflow.v2beta1.Participant("google-nativeParticipantResource",
    conversation_id="string",
    documents_metadata_filters={
        "string": "string",
    },
    location="string",
    name="string",
    obfuscated_external_user_id="string",
    project="string",
    role=google_native.dialogflow.v2beta1.ParticipantRole.ROLE_UNSPECIFIED)
Copy
const google_nativeParticipantResource = new google_native.dialogflow.v2beta1.Participant("google-nativeParticipantResource", {
    conversationId: "string",
    documentsMetadataFilters: {
        string: "string",
    },
    location: "string",
    name: "string",
    obfuscatedExternalUserId: "string",
    project: "string",
    role: google_native.dialogflow.v2beta1.ParticipantRole.RoleUnspecified,
});
Copy
type: google-native:dialogflow/v2beta1:Participant
properties:
    conversationId: string
    documentsMetadataFilters:
        string: string
    location: string
    name: string
    obfuscatedExternalUserId: string
    project: string
    role: ROLE_UNSPECIFIED
Copy

Participant Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Participant resource accepts the following input properties:

ConversationId
This property is required.
Changes to this property will trigger replacement.
string
DocumentsMetadataFilters Dictionary<string, string>
Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" }
Location Changes to this property will trigger replacement. string
Name string
Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
ObfuscatedExternalUserId string
Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow uses this user id for billing and measurement. If a user with the same obfuscated_external_user_id is created in a later conversation, Dialogflow will know it's the same user. Dialogflow also uses this user id for Agent Assist suggestion personalization. For example, Dialogflow can use it to provide personalized smart reply suggestions for this user. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.
Project Changes to this property will trigger replacement. string
Role Pulumi.GoogleNative.Dialogflow.V2Beta1.ParticipantRole
Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.
ConversationId
This property is required.
Changes to this property will trigger replacement.
string
DocumentsMetadataFilters map[string]string
Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" }
Location Changes to this property will trigger replacement. string
Name string
Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
ObfuscatedExternalUserId string
Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow uses this user id for billing and measurement. If a user with the same obfuscated_external_user_id is created in a later conversation, Dialogflow will know it's the same user. Dialogflow also uses this user id for Agent Assist suggestion personalization. For example, Dialogflow can use it to provide personalized smart reply suggestions for this user. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.
Project Changes to this property will trigger replacement. string
Role ParticipantRole
Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.
conversationId
This property is required.
Changes to this property will trigger replacement.
String
documentsMetadataFilters Map<String,String>
Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" }
location Changes to this property will trigger replacement. String
name String
Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
obfuscatedExternalUserId String
Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow uses this user id for billing and measurement. If a user with the same obfuscated_external_user_id is created in a later conversation, Dialogflow will know it's the same user. Dialogflow also uses this user id for Agent Assist suggestion personalization. For example, Dialogflow can use it to provide personalized smart reply suggestions for this user. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.
project Changes to this property will trigger replacement. String
role ParticipantRole
Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.
conversationId
This property is required.
Changes to this property will trigger replacement.
string
documentsMetadataFilters {[key: string]: string}
Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" }
location Changes to this property will trigger replacement. string
name string
Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
obfuscatedExternalUserId string
Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow uses this user id for billing and measurement. If a user with the same obfuscated_external_user_id is created in a later conversation, Dialogflow will know it's the same user. Dialogflow also uses this user id for Agent Assist suggestion personalization. For example, Dialogflow can use it to provide personalized smart reply suggestions for this user. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.
project Changes to this property will trigger replacement. string
role ParticipantRole
Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.
conversation_id
This property is required.
Changes to this property will trigger replacement.
str
documents_metadata_filters Mapping[str, str]
Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" }
location Changes to this property will trigger replacement. str
name str
Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
obfuscated_external_user_id str
Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow uses this user id for billing and measurement. If a user with the same obfuscated_external_user_id is created in a later conversation, Dialogflow will know it's the same user. Dialogflow also uses this user id for Agent Assist suggestion personalization. For example, Dialogflow can use it to provide personalized smart reply suggestions for this user. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.
project Changes to this property will trigger replacement. str
role ParticipantRole
Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.
conversationId
This property is required.
Changes to this property will trigger replacement.
String
documentsMetadataFilters Map<String>
Optional. Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have 'US' or 'CA' in their market metadata values and 'agent' in their user metadata values will be documents_metadata_filters { key: "market" value: "US,CA" } documents_metadata_filters { key: "user" value: "agent" }
location Changes to this property will trigger replacement. String
name String
Optional. The unique identifier of this participant. Format: projects//locations//conversations//participants/.
obfuscatedExternalUserId String
Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow uses this user id for billing and measurement. If a user with the same obfuscated_external_user_id is created in a later conversation, Dialogflow will know it's the same user. Dialogflow also uses this user id for Agent Assist suggestion personalization. For example, Dialogflow can use it to provide personalized smart reply suggestions for this user. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be <= 256 characters.
project Changes to this property will trigger replacement. String
role "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"
Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.

Outputs

All input properties are implicitly available as output properties. Additionally, the Participant resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

ParticipantRole
, ParticipantRoleArgs

RoleUnspecified
ROLE_UNSPECIFIEDParticipant role not set.
HumanAgent
HUMAN_AGENTParticipant is a human agent.
AutomatedAgent
AUTOMATED_AGENTParticipant is an automated agent, such as a Dialogflow agent.
EndUser
END_USERParticipant is an end user that has called or chatted with Dialogflow services.
ParticipantRoleRoleUnspecified
ROLE_UNSPECIFIEDParticipant role not set.
ParticipantRoleHumanAgent
HUMAN_AGENTParticipant is a human agent.
ParticipantRoleAutomatedAgent
AUTOMATED_AGENTParticipant is an automated agent, such as a Dialogflow agent.
ParticipantRoleEndUser
END_USERParticipant is an end user that has called or chatted with Dialogflow services.
RoleUnspecified
ROLE_UNSPECIFIEDParticipant role not set.
HumanAgent
HUMAN_AGENTParticipant is a human agent.
AutomatedAgent
AUTOMATED_AGENTParticipant is an automated agent, such as a Dialogflow agent.
EndUser
END_USERParticipant is an end user that has called or chatted with Dialogflow services.
RoleUnspecified
ROLE_UNSPECIFIEDParticipant role not set.
HumanAgent
HUMAN_AGENTParticipant is a human agent.
AutomatedAgent
AUTOMATED_AGENTParticipant is an automated agent, such as a Dialogflow agent.
EndUser
END_USERParticipant is an end user that has called or chatted with Dialogflow services.
ROLE_UNSPECIFIED
ROLE_UNSPECIFIEDParticipant role not set.
HUMAN_AGENT
HUMAN_AGENTParticipant is a human agent.
AUTOMATED_AGENT
AUTOMATED_AGENTParticipant is an automated agent, such as a Dialogflow agent.
END_USER
END_USERParticipant is an end user that has called or chatted with Dialogflow services.
"ROLE_UNSPECIFIED"
ROLE_UNSPECIFIEDParticipant role not set.
"HUMAN_AGENT"
HUMAN_AGENTParticipant is a human agent.
"AUTOMATED_AGENT"
AUTOMATED_AGENTParticipant is an automated agent, such as a Dialogflow agent.
"END_USER"
END_USERParticipant is an end user that has called or chatted with Dialogflow services.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi