🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@yext/chat-core-aws-connect

Package Overview
Dependencies
Maintainers
70
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yext/chat-core-aws-connect

Typescript Networking Library for the Yext Chat API Integration with Amazon Connect

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
Maintainers
70
Weekly downloads
 
Created
Source

chat-core-aws-connect

a library used for integrating Yext Chat with the Amazon Connect agent platform.

  • Works in both the browser and Node.js
  • 100% TypeScript, with detailed request and response models
  • Compatible with both CommonJS and ES6 imports

Usage

import { provideChatCoreAwsConnect } from "@yext/chat-core-aws-connect";
import { Message, MessageResponse } from "@yext/chat-core";

// create a new instance of ChatCoreAwsConnect
const chatCoreAwsConnect = provideChatCoreAwsConnect();

// with some response from the Chat API containing handoff credentials...
const chatApiResponse: MessageResponse;

// initiate a connection to Amazon Connect using the credentials
await chatCoreAwsConnect.init(chatApiResponse);

// create a message payload
const messages: Message[] = [
  {
    source: "USER",
    text: "Could I get some assistance?",
    timestamp: "2023-05-15T17:33:38.373Z",
  },
];

// send it to Connect!
await chatCoreAwsConnect.processMessage({ messages });

Documentation

See our documentation for a more details on supported API calls and interfaces.

Keywords

networking

FAQs

Package last updated on 09 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts