Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 884 Bytes

File metadata and controls

39 lines (25 loc) · 884 Bytes

Chat guard

This integration deactives chat for specified rules e.g. unknown user-agent.

Installation

  1. Run
npm i
  1. Create an app in Developer Console.
  2. Create Authorization building block (server-side).
  3. Write down client_id and client_secret.
  4. Run
cp .env.template .env
  1. Populate .env.
  2. Run
npm start

Homework

💸 Complete the task, submit a PR, and get $50 added to your Developer Program account. Developer Terms apply.

Task description

Using the Agent Chat API, send a message visible only to the agent with the following body: [chat-guard] Chat closed due to incorrect user agent

Happy coding! 🤓

Cat typing real fast