clients/client-qconnect/README.md
AWS SDK for JavaScript QConnect Client for Node.js, Browser and React Native.
<ul> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Q_Connect.html">Amazon Q actions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Q_Connect.html">Amazon Q data types</a> </p> </li> </ul> <note> <p> <b>Powered by Amazon Bedrock</b>: Amazon Web Services implements <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/abuse-detection.html">automated abuse detection</a>. 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).</p> </note> <p>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.</p> <p>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.</p> <p>Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-q-connect.html">Use Amazon Q in Connect for generative AI powered agent assistance in real-time</a> in the <i>Amazon Connect Administrator Guide</i>.</p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-qconnectyarn add @aws-sdk/client-qconnectpnpm add @aws-sdk/client-qconnectThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the QConnectClient and
the commands you need, for example ListAssistantsCommand:
// ES5 example
const { QConnectClient, ListAssistantsCommand } = require("@aws-sdk/client-qconnect");
// ES6+ example
import { QConnectClient, ListAssistantsCommand } from "@aws-sdk/client-qconnect";
To send a request:
send operation on the client, providing the command object as input.const client = new QConnectClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListAssistantsCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
QConnect extends QConnectClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (QConnectClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { QConnect } from "@aws-sdk/client-qconnect";
const client = new QConnect({ region: "REGION" });
// async/await.
try {
const data = await client.listAssistants(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listAssistants(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listAssistants(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-qconnect package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> CreateAIAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAIAgentVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAIGuardrail </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAIGuardrailVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAIPrompt </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAIPromptVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAssistant </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAssistantAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateContent </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateContentAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateKnowledgeBase </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateMessageTemplate </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateMessageTemplateAttachment </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateMessageTemplateVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateQuickResponse </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateSession </summary>Command API Reference / Input / Output
</details> <details> <summary> DeactivateMessageTemplate </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAIAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAIAgentVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAIGuardrail </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAIGuardrailVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAIPrompt </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAIPromptVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAssistant </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAssistantAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteContent </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteContentAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteKnowledgeBase </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteMessageTemplate </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteMessageTemplateAttachment </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteQuickResponse </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAIAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAIGuardrail </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAIPrompt </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAssistant </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAssistantAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> GetContent </summary>Command API Reference / Input / Output
</details> <details> <summary> GetContentAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> GetContentSummary </summary>Command API Reference / Input / Output
</details> <details> <summary> GetImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetKnowledgeBase </summary>Command API Reference / Input / Output
</details> <details> <summary> GetMessageTemplate </summary>Command API Reference / Input / Output
</details> <details> <summary> GetNextMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> GetQuickResponse </summary>Command API Reference / Input / Output
</details> <details> <summary> GetRecommendations </summary>Command API Reference / Input / Output
</details> <details> <summary> GetSession </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAIAgents </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAIAgentVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAIGuardrails </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAIGuardrailVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAIPrompts </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAIPromptVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssistantAssociations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAssistants </summary>Command API Reference / Input / Output
</details> <details> <summary> ListContentAssociations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListContents </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImportJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListKnowledgeBases </summary>Command API Reference / Input / Output
</details> <details> <summary> ListMessages </summary>Command API Reference / Input / Output
</details> <details> <summary> ListMessageTemplates </summary>Command API Reference / Input / Output
</details> <details> <summary> ListMessageTemplateVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListQuickResponses </summary>Command API Reference / Input / Output
</details> <details> <summary> ListSpans </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> NotifyRecommendationsReceived </summary>Command API Reference / Input / Output
</details> <details> <summary> PutFeedback </summary>Command API Reference / Input / Output
</details> <details> <summary> QueryAssistant </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveAssistantAIAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveKnowledgeBaseTemplateUri </summary>Command API Reference / Input / Output
</details> <details> <summary> RenderMessageTemplate </summary>Command API Reference / Input / Output
</details> <details> <summary> Retrieve </summary>Command API Reference / Input / Output
</details> <details> <summary> SearchContent </summary>Command API Reference / Input / Output
</details> <details> <summary> SearchMessageTemplates </summary>Command API Reference / Input / Output
</details> <details> <summary> SearchQuickResponses </summary>Command API Reference / Input / Output
</details> <details> <summary> SearchSessions </summary>Command API Reference / Input / Output
</details> <details> <summary> SendMessage </summary>Command API Reference / Input / Output
</details> <details> <summary> StartContentUpload </summary>Command API Reference / Input / Output
</details> <details> <summary> StartImportJob </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAIAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAIGuardrail </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAIPrompt </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateAssistantAIAgent </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateContent </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateKnowledgeBaseTemplateUri </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateMessageTemplate </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateMessageTemplateMetadata </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateQuickResponse </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateSession </summary> </details> <details> <summary> UpdateSessionData </summary> </details>