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

@telnyx/ai-chat-widget

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telnyx/ai-chat-widget

Embeddable AI chat widget

latest
npmnpm
Version
2.3.1
Version published
Maintainers
6
Created
Source

AI Widget Setup (local)

This is a simple guide to setup the AI Widget in your project.

Prerequisites

  • Node.js
  • pnpm

Step 1: Create a new flow at flow.telnyx.com

  • Go to flow.telnyx.com
  • Create a new flow

Step 1.1: Setup the flow trigger and response

  • Make the request trigger a GET request
  • Make the arguments question, sessionId, and userId as query parameters
  • Make the response a stream response.

Step 2: Setup the flow URL in local ai-widget's code

  • Search for flowBaseUrl in the code
  • Replace the value with the flow URL
  • Replace the URL api.telnyx.com/v2 with localhost:5173 or the URL where the ai-widget is hosted

Step 3: Setup the vite proxy with Bearer token

  • Replace the Bearer token with the token from the Telnyx portal in the vite.config.js file.

Step 4: Run the project

  • Install the dependencies using pnpm install
  • Run the project using pnpm run dev

Keywords

ai

FAQs

Package last updated on 11 Sep 2025

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