The AWS SDK for JavaScript v2 has reached end-of-support.
We recommend that you migrate to AWS SDK for JavaScript v3. For additional details and information on how to migrate, please refer to the announcement.

Class: AWS.QConnect

Inherits:
AWS.Service show all
Identifier:
qconnect
API Version:
2020-10-19
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Note: Powered by Amazon Bedrock: Amazon Web Services implements automated abuse detection. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of artificial intelligence (AI).

Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact center agents resolve customer issues quickly and accurately.

Amazon Q in Connect automatically detects customer intent during calls and chats using conversational analytics and natural language understanding (NLU). It then provides agents with immediate, real-time generative responses and suggested actions, and links to relevant documents and articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer customer requests.

Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.

For more information, see Use Amazon Q in Connect for generative AI powered agent assistance in real-time in the Amazon Connect Administrator Guide.

Sending a Request Using QConnect

var qconnect = new AWS.QConnect();
qconnect.createAssistant(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the QConnect object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var qconnect = new AWS.QConnect({apiVersion: '2020-10-19'});

You can also set the API version globally in AWS.config.apiVersions using the qconnect service identifier:

AWS.config.apiVersions = {
  qconnect: '2020-10-19',
  // other service API versions
};

var qconnect = new AWS.QConnect();

Version:

  • 2020-10-19

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.QConnect(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a QConnect object

var qconnect = new AWS.QConnect({apiVersion: '2020-10-19'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.QConnect.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.QConnect.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.QConnect.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

createAssistant(params = {}, callback) ⇒ AWS.Request

Creates an Amazon Q in Connect assistant.

Service Reference:

Examples:

Calling the createAssistant operation

var params = {
  name: 'STRING_VALUE', /* required */
  type: AGENT, /* required */
  clientToken: 'STRING_VALUE',
  description: 'STRING_VALUE',
  serverSideEncryptionConfiguration: {
    kmsKeyId: 'STRING_VALUE'
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
qconnect.createAssistant(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • description — (String)

      The description of the assistant.

    • name — (String)

      The name of the assistant.

    • serverSideEncryptionConfiguration — (map)

      The configuration information for the customer managed key used for encryption.

      The customer managed key must have a policy that allows kms:CreateGrant, kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, the key policy must also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey permissions to the connect.amazonaws.com service principal.

      For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.

    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

    • type — (String)

      The type of assistant.

      Possible values include:
      • "AGENT"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • assistant — (map)

        Information about the assistant.

        • assistantArnrequired — (String)

          The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

        • assistantIdrequired — (String)

          The identifier of the Amazon Q in Connect assistant.

        • capabilityConfiguration — (map)

          The configuration information for the Amazon Q in Connect assistant capability.

          • type — (String)

            The type of Amazon Q in Connect assistant capability.

            Possible values include:
            • "V1"
            • "V2"
        • description — (String)

          The description.

        • integrationConfiguration — (map)

          The configuration information for the Amazon Q in Connect assistant integration.

          • topicIntegrationArn — (String)

            The Amazon Resource Name (ARN) of the integrated Amazon SNS topic used for streaming chat messages.

        • namerequired — (String)

          The name.

        • serverSideEncryptionConfiguration — (map)

          The configuration information for the customer managed key used for encryption.

          This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, the key policy must also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey permissions to the connect.amazonaws.com service principal.

          For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.

        • statusrequired — (String)

          The status of the assistant.

          Possible values include:
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "ACTIVE"
          • "DELETE_IN_PROGRESS"
          • "DELETE_FAILED"
          • "DELETED"
        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

        • typerequired — (String)

          The type of assistant.

          Possible values include:
          • "AGENT"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAssistantAssociation(params = {}, callback) ⇒ AWS.Request

Creates an association between an Amazon Q in Connect assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.

Service Reference:

Examples:

Calling the createAssistantAssociation operation

var params = {
  assistantId: 'STRING_VALUE', /* required */
  association: { /* required */
    knowledgeBaseId: 'STRING_VALUE'
  },
  associationType: KNOWLEDGE_BASE, /* required */
  clientToken: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
qconnect.createAssistantAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • assistantId — (String)

      The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    • association — (map)

      The identifier of the associated resource.

      • knowledgeBaseId — (String)

        The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base.

    • associationType — (String)

      The type of association.

      Possible values include:
      • "KNOWLEDGE_BASE"
    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • assistantAssociation — (map)

        The assistant association.

        • assistantArnrequired — (String)

          The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

        • assistantAssociationArnrequired — (String)

          The Amazon Resource Name (ARN) of the assistant association.

        • assistantAssociationIdrequired — (String)

          The identifier of the assistant association.

        • assistantIdrequired — (String)

          The identifier of the Amazon Q in Connect assistant.

        • associationDatarequired — (map)

          A union type that currently has a single argument, the knowledge base ID.

          • knowledgeBaseAssociation — (map)

            The knowledge base where output data is sent.

            • knowledgeBaseArn — (String)

              The Amazon Resource Name (ARN) of the knowledge base.

            • knowledgeBaseId — (String)

              The identifier of the knowledge base.

        • associationTyperequired — (String)

          The type of association.

          Possible values include:
          • "KNOWLEDGE_BASE"
        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createContent(params = {}, callback) ⇒ AWS.Request

Creates Amazon Q in Connect content. Before to calling this API, use StartContentUpload to upload an asset.

Service Reference:

Examples:

Calling the createContent operation

var params = {
  knowledgeBaseId: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  uploadId: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  metadata: {
    '<NonEmptyString>': 'STRING_VALUE',
    /* '<NonEmptyString>': ... */
  },
  overrideLinkOutUri: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  title: 'STRING_VALUE'
};
qconnect.createContent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • knowledgeBaseId — (String)

      The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

    • metadata — (map<String>)

      A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.

    • name — (String)

      The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.

    • overrideLinkOutUri — (String)

      The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.

    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

    • title — (String)

      The title of the content. If not set, the title is equal to the name.

    • uploadId — (String)

      A pointer to the uploaded asset. This value is returned by StartContentUpload.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • content — (map)

        The content.

        • contentArnrequired — (String)

          The Amazon Resource Name (ARN) of the content.

        • contentIdrequired — (String)

          The identifier of the content.

        • contentTyperequired — (String)

          The media type of the content.

        • knowledgeBaseArnrequired — (String)

          The Amazon Resource Name (ARN) of the knowledge base.

        • knowledgeBaseIdrequired — (String)

          The identifier of the knowledge base.

        • linkOutUri — (String)

          The URI of the content.

        • metadatarequired — (map<String>)

          A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.

        • namerequired — (String)

          The name of the content.

        • revisionIdrequired — (String)

          The identifier of the content revision.

        • statusrequired — (String)

          The status of the content.

          Possible values include:
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "ACTIVE"
          • "DELETE_IN_PROGRESS"
          • "DELETE_FAILED"
          • "DELETED"
          • "UPDATE_FAILED"
        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

        • titlerequired — (String)

          The title of the content.

        • urlrequired — (String)

          The URL of the content.

        • urlExpiryrequired — (Date)

          The expiration time of the URL as an epoch timestamp.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createContentAssociation(params = {}, callback) ⇒ AWS.Request

Creates an association between a content resource in a knowledge base and step-by-step guides. Step-by-step guides offer instructions to agents for resolving common customer issues. You create a content association to integrate Amazon Q in Connect and step-by-step guides.

After you integrate Amazon Q and step-by-step guides, when Amazon Q provides a recommendation to an agent based on the intent that it's detected, it also provides them with the option to start the step-by-step guide that you have associated with the content.

Note the following limitations:

  • You can create only one content association for each content resource in a knowledge base.

  • You can associate a step-by-step guide with multiple content resources.

For more information, see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the createContentAssociation operation

var params = {
  association: { /* required */
    amazonConnectGuideAssociation: {
      flowId: 'STRING_VALUE'
    }
  },
  associationType: AMAZON_CONNECT_GUIDE, /* required */
  contentId: 'STRING_VALUE', /* required */
  knowledgeBaseId: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
qconnect.createContentAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • association — (map)

      The identifier of the associated resource.

      • amazonConnectGuideAssociation — (map)

        The data of the step-by-step guide association.

        • flowId — (String)

          The Amazon Resource Name (ARN) of an Amazon Connect flow. Step-by-step guides are a type of flow.

    • associationType — (String)

      The type of association.

      Possible values include:
      • "AMAZON_CONNECT_GUIDE"
    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • contentId — (String)

      The identifier of the content.

    • knowledgeBaseId — (String)

      The identifier of the knowledge base.

    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • contentAssociation — (map)

        The association between Amazon Q in Connect content and another resource.

        • associationDatarequired — (map)

          The content association.

          • amazonConnectGuideAssociation — (map)

            The data of the step-by-step guide association.

            • flowId — (String)

              The Amazon Resource Name (ARN) of an Amazon Connect flow. Step-by-step guides are a type of flow.

        • associationTyperequired — (String)

          The type of association.

          Possible values include:
          • "AMAZON_CONNECT_GUIDE"
        • contentArnrequired — (String)

          The Amazon Resource Name (ARN) of the content.

        • contentAssociationArnrequired — (String)

          The Amazon Resource Name (ARN) of the content association.

        • contentAssociationIdrequired — (String)

          The identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN.

        • contentIdrequired — (String)

          The identifier of the content.

        • knowledgeBaseArnrequired — (String)

          The Amazon Resource Name (ARN) of the knowledge base.

        • knowledgeBaseIdrequired — (String)

          The identifier of the knowledge base.

        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createKnowledgeBase(params = {}, callback) ⇒ AWS.Request

Creates a knowledge base.

Note: When using this API, you cannot reuse Amazon AppIntegrations DataIntegrations with external knowledge bases such as Salesforce and ServiceNow. If you do, you'll get an InvalidRequestException error. For example, you're programmatically managing your external knowledge base, and you want to add or remove one of the fields that is being ingested from Salesforce. Do the following:
  1. Call DeleteKnowledgeBase.
  2. Call DeleteDataIntegration.
  3. Call CreateDataIntegration to recreate the DataIntegration or a create different one.
  4. Call CreateKnowledgeBase.

Service Reference:

Examples:

Calling the createKnowledgeBase operation

var params = {
  knowledgeBaseType: EXTERNAL | CUSTOM | QUICK_RESPONSES, /* required */
  name: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  description: 'STRING_VALUE',
  renderingConfiguration: {
    templateUri: 'STRING_VALUE'
  },
  serverSideEncryptionConfiguration: {
    kmsKeyId: 'STRING_VALUE'
  },
  sourceConfiguration: {
    appIntegrations: {
      appIntegrationArn: 'STRING_VALUE', /* required */
      objectFields: [
        'STRING_VALUE',
        /* more items */
      ]
    }
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
qconnect.createKnowledgeBase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • description — (String)

      The description.

    • knowledgeBaseType — (String)

      The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.

      Possible values include:
      • "EXTERNAL"
      • "CUSTOM"
      • "QUICK_RESPONSES"
    • name — (String)

      The name of the knowledge base.

    • renderingConfiguration — (map)

      Information about how to render the content.

      • templateUri — (String)

        A URI template containing exactly one variable in ${variableName} format. This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:

        • Salesforce: Id, ArticleNumber, VersionNumber, Title, PublishStatus, or IsDeleted

        • ServiceNow: number, short_description, sys_mod_count, workflow_state, or active

        • Zendesk: id, title, updated_at, or draft

        The variable is replaced with the actual value for a piece of content when calling GetContent.

    • serverSideEncryptionConfiguration — (map)

      The configuration information for the customer managed key used for encryption.

      This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using the key to invoke Amazon Q in Connect.

      For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.

    • sourceConfiguration — (map)

      The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.

      • appIntegrations — (map)

        Configuration information for Amazon AppIntegrations to automatically ingest content.

        • appIntegrationArnrequired — (String)

          The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.

          • For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted as source fields.

          • For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least number, short_description, sys_mod_count, workflow_state, and active as source fields.

          • For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least id, title, updated_at, and draft as source fields.

          • For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among docx, pdf, html, htm, and txt.

          • For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The SourceURI of your DataIntegration must use the following format: s3://your_s3_bucket_name.

            The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal app-integrations.amazonaws.com to perform s3:ListBucket, s3:GetObject, and s3:GetBucketLocation against the bucket.

        • objectFields — (Array<String>)

          The fields from the source that are made available to your agents in Amazon Q in Connect. Optional if ObjectConfiguration is included in the provided DataIntegration.

          • For Salesforce, you must include at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted.

          • For ServiceNow, you must include at least number, short_description, sys_mod_count, workflow_state, and active.

          • For Zendesk, you must include at least id, title, updated_at, and draft.

          Make sure to include additional fields. These fields are indexed and used to source recommendations.

    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • knowledgeBase — (map)

        The knowledge base.

        • description — (String)

          The description.

        • knowledgeBaseArnrequired — (String)

          The Amazon Resource Name (ARN) of the knowledge base.

        • knowledgeBaseIdrequired — (String)

          The identifier of the knowledge base.

        • knowledgeBaseTyperequired — (String)

          The type of knowledge base.

          Possible values include:
          • "EXTERNAL"
          • "CUSTOM"
          • "QUICK_RESPONSES"
        • lastContentModificationTime — (Date)

          An epoch timestamp indicating the most recent content modification inside the knowledge base. If no content exists in a knowledge base, this value is unset.

        • namerequired — (String)

          The name of the knowledge base.

        • renderingConfiguration — (map)

          Information about how to render the content.

          • templateUri — (String)

            A URI template containing exactly one variable in ${variableName} format. This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:

            • Salesforce: Id, ArticleNumber, VersionNumber, Title, PublishStatus, or IsDeleted

            • ServiceNow: number, short_description, sys_mod_count, workflow_state, or active

            • Zendesk: id, title, updated_at, or draft

            The variable is replaced with the actual value for a piece of content when calling GetContent.

        • serverSideEncryptionConfiguration — (map)

          The configuration information for the customer managed key used for encryption.

          This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using the key to invoke Amazon Q in Connect.

          For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.

        • sourceConfiguration — (map)

          Source configuration information about the knowledge base.

          • appIntegrations — (map)

            Configuration information for Amazon AppIntegrations to automatically ingest content.

            • appIntegrationArnrequired — (String)

              The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.

              • For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted as source fields.

              • For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least number, short_description, sys_mod_count, workflow_state, and active as source fields.

              • For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least id, title, updated_at, and draft as source fields.

              • For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among docx, pdf, html, htm, and txt.

              • For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The SourceURI of your DataIntegration must use the following format: s3://your_s3_bucket_name.

                The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal app-integrations.amazonaws.com to perform s3:ListBucket, s3:GetObject, and s3:GetBucketLocation against the bucket.

            • objectFields — (Array<String>)

              The fields from the source that are made available to your agents in Amazon Q in Connect. Optional if ObjectConfiguration is included in the provided DataIntegration.

              • For Salesforce, you must include at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted.

              • For ServiceNow, you must include at least number, short_description, sys_mod_count, workflow_state, and active.

              • For Zendesk, you must include at least id, title, updated_at, and draft.

              Make sure to include additional fields. These fields are indexed and used to source recommendations.

        • statusrequired — (String)

          The status of the knowledge base.

          Possible values include:
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "ACTIVE"
          • "DELETE_IN_PROGRESS"
          • "DELETE_FAILED"
          • "DELETED"
        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createQuickResponse(params = {}, callback) ⇒ AWS.Request

Creates an Amazon Q in Connect quick response.

Service Reference:

Examples:

Calling the createQuickResponse operation

var params = {
  content: { /* required */
    content: 'STRING_VALUE'
  },
  knowledgeBaseId: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  channels: [
    'STRING_VALUE',
    /* more items */
  ],
  clientToken: 'STRING_VALUE',
  contentType: 'STRING_VALUE',
  description: 'STRING_VALUE',
  groupingConfiguration: {
    criteria: 'STRING_VALUE',
    values: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  isActive: true || false,
  language: 'STRING_VALUE',
  shortcutKey: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
qconnect.createQuickResponse(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • channels — (Array<String>)

      The Amazon Connect channels this quick response applies to.

    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • content — (map)

      The content of the quick response.

      • content — (String)

        The content of the quick response.

    • contentType — (String)

      The media type of the quick response content.

      • Use application/x.quickresponse;format=plain for a quick response written in plain text.

      • Use application/x.quickresponse;format=markdown for a quick response written in richtext.

    • description — (String)

      The description of the quick response.

    • groupingConfiguration — (map)

      The configuration information of the user groups that the quick response is accessible to.

      • criteria — (String)

        The criteria used for grouping Amazon Q in Connect users.

        The following is the list of supported criteria values.

      • values — (Array<String>)

        The list of values that define different groups of Amazon Q in Connect users.

    • isActive — (Boolean)

      Whether the quick response is active.

    • knowledgeBaseId — (String)

      The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

    • language — (String)

      The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

    • name — (String)

      The name of the quick response.

    • shortcutKey — (String)

      The shortcut key of the quick response. The value should be unique across the knowledge base.

    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • quickResponse — (map)

        The quick response.

        • channels — (Array<String>)

          The Amazon Connect contact channels this quick response applies to. The supported contact channel types include Chat.

        • contentTyperequired — (String)

          The media type of the quick response content.

          • Use application/x.quickresponse;format=plain for quick response written in plain text.

          • Use application/x.quickresponse;format=markdown for quick response written in richtext.

        • contents — (map)

          The contents of the quick response.

          • markdown — (map)

            The container quick response content.

            • content — (String)

              The content of the quick response.

          • plainText — (map)

            The container quick response content.

            • content — (String)

              The content of the quick response.

        • createdTimerequired — (Date)

          The timestamp when the quick response was created.

        • description — (String)

          The description of the quick response.

        • groupingConfiguration — (map)

          The configuration information of the user groups that the quick response is accessible to.

          • criteria — (String)

            The criteria used for grouping Amazon Q in Connect users.

            The following is the list of supported criteria values.

          • values — (Array<String>)

            The list of values that define different groups of Amazon Q in Connect users.

        • isActive — (Boolean)

          Whether the quick response is active.

        • knowledgeBaseArnrequired — (String)

          The Amazon Resource Name (ARN) of the knowledge base.

        • knowledgeBaseIdrequired — (String)

          The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

        • language — (String)

          The language code value for the language in which the quick response is written.

        • lastModifiedBy — (String)

          The Amazon Resource Name (ARN) of the user who last updated the quick response data.

        • lastModifiedTimerequired — (Date)

          The timestamp when the quick response data was last modified.

        • namerequired — (String)

          The name of the quick response.

        • quickResponseArnrequired — (String)

          The Amazon Resource Name (ARN) of the quick response.

        • quickResponseIdrequired — (String)

          The identifier of the quick response.

        • shortcutKey — (String)

          The shortcut key of the quick response. The value should be unique across the knowledge base.

        • statusrequired — (String)

          The status of the quick response data.

          Possible values include:
          • "CREATE_IN_PROGRESS"
          • "CREATE_FAILED"
          • "CREATED"
          • "DELETE_IN_PROGRESS"
          • "DELETE_FAILED"
          • "DELETED"
          • "UPDATE_IN_PROGRESS"
          • "UPDATE_FAILED"
        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createSession(params = {}, callback) ⇒ AWS.Request

Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.

Service Reference:

Examples:

Calling the createSession operation

var params = {
  assistantId: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  description: 'STRING_VALUE',
  tagFilter: {
    andConditions: [
      {
        key: 'STRING_VALUE', /* required */
        value: 'STRING_VALUE'
      },
      /* more items */
    ],
    orConditions: [
      {
        andConditions: [
          {
            key: 'STRING_VALUE', /* required */
            value: 'STRING_VALUE'
          },
          /* more items */
        ],
        tagCondition: {
          key: 'STRING_VALUE', /* required */
          value: 'STRING_VALUE'
        }
      },
      /* more items */
    ],
    tagCondition: {
      key: 'STRING_VALUE', /* required */
      value: 'STRING_VALUE'
    }
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
qconnect.createSession(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • assistantId — (String)

      The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    • clientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

      If a token is not provided, the SDK will use a version 4 UUID.
    • description — (String)

      The description.

    • name — (String)

      The name of the session.

    • tagFilter — (map)

      An object that can be used to specify Tag conditions.

      • andConditions — (Array<map>)

        A list of conditions which would be applied together with an AND condition.

        • keyrequired — (String)

          The tag key in the tag condition.

        • value — (String)

          The tag value in the tag condition.

      • orConditions — (Array<map>)

        A list of conditions which would be applied together with an OR condition.

        • andConditions — (Array<map>)

          A list of conditions which would be applied together with an AND condition.

          • keyrequired — (String)

            The tag key in the tag condition.

          • value — (String)

            The tag value in the tag condition.

        • tagCondition — (map)

          A leaf node condition which can be used to specify a tag condition.

          • keyrequired — (String)

            The tag key in the tag condition.

          • value — (String)

            The tag value in the tag condition.

      • tagCondition — (map)

        A leaf node condition which can be used to specify a tag condition.

        • keyrequired — (String)

          The tag key in the tag condition.

        • value — (String)

          The tag value in the tag condition.

    • tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • session — (map)

        The session.

        • description — (String)

          The description of the session.

        • integrationConfiguration — (map)

          The configuration information for the session integration.

          • topicIntegrationArn — (String)

            The Amazon Resource Name (ARN) of the integrated Amazon SNS topic used for streaming chat messages.

        • namerequired — (String)

          The name of the session.

        • sessionArnrequired — (String)

          The Amazon Resource Name (ARN) of the session.

        • sessionIdrequired — (String)

          The identifier of the session.

        • tagFilter — (map)

          An object that can be used to specify Tag conditions.

          • andConditions — (Array<map>)

            A list of conditions which would be applied together with an AND condition.

            • keyrequired — (String)

              The tag key in the tag condition.

            • value — (String)

              The tag value in the tag condition.

          • orConditions — (Array<map>)

            A list of conditions which would be applied together with an OR condition.

            • andConditions — (Array<map>)

              A list of conditions which would be applied together with an AND condition.

              • keyrequired — (String)

                The tag key in the tag condition.

              • value — (String)

                The tag value in the tag condition.

            • tagCondition — (map)

              A leaf node condition which can be used to specify a tag condition.

              • keyrequired — (String)

                The tag key in the tag condition.

              • value — (String)

                The tag value in the tag condition.

          • tagCondition — (map)

            A leaf node condition which can be used to specify a tag condition.

            • keyrequired — (String)

              The tag key in the tag condition.

            • value — (String)

              The tag value in the tag condition.

        • tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAssistant(params = {}, callback) ⇒ AWS.Request

Deletes an assistant.

Service Reference:

Examples:

Calling the deleteAssistant operation

var params = {
  assistantId: 'STRING_VALUE' /* required */
};
qconnect.deleteAssistant(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • assistantId — (String)

      The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAssistantAssociation(params = {}, callback) ⇒ AWS.Request

Deletes an assistant association.

Service Reference:

Examples:

Calling the deleteAssistantAssociation operation

var params = {
  assistantAssociationId: 'STRING_VALUE', /* required */
  assistantId: 'STRING_VALUE' /* required */
};
qconnect.deleteAssistantAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • assistantAssociationId — (String)

      The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

    • assistantId — (String)

      The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteContent(params = {}, callback) ⇒ AWS.Request

Deletes the content.

Service Reference:

Examples:

Calling the deleteContent operation

var params = {
  contentId: 'STRING_VALUE', /* required */
  knowledgeBaseId: 'STRING_VALUE' /* required */
};
qconnect.deleteContent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • contentId — (String)

      The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

    • knowledgeBaseId — (String)

      The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

Callback (callback):

  • function(err, data) { ... }