Questions tagged [twilio-programmable-chat]

For questions about Twilio's text chat APIs. This is distinct from their voice chat or SMS messaging APIs, which should be tagged as "twilio-api".

Programmable Chat which is part of Twilio solutions:

Add chat to any app with SDKs for mobile and web. Powered by the Twilio cloud.

Site: https://www.twilio.com/chat

Docs: https://www.twilio.com/docs/api/chat

383 questions
1
vote
2 answers

Twilio SMS (Whatsapp): Send Location

I see documentation of a new feature in Twilio (send location). I followed the documentation as a test, but it does not show up in Whatsapp. context.getTwilioClient().messages.create({ from: 'whatsapp:' + context.WHATSAPP_NUMBER, …
John C
  • 517
  • 2
  • 6
  • 16
1
vote
2 answers

How to check my NSString is exist in my NSMutableOrderedSet?

I am getting below response from the one of the third party SDK, Now how to check that my String value is exist in the response? And the key I need to compare with friendlyName key. channelList = ( "<: sid: 'CH84',…
1
vote
1 answer

Twilio Function - Variable values

I am trying to understand how the variable values can be referenced from event.Memory in Autopilot. Here is a simple test to explain what I am trying to achieve.. From the Bot model --> using remember action to store value "remember": { …
1
vote
1 answer

"Verify" API - logs and settings

We're implementing phone verification using the TWILIO "Verify" API and have a few questions: 1. Where may I see logs for the SMSs, with their status and all, same like I see for TWILIO Programmable SMS. 2. Where may I edit the 'from' name and the…
1
vote
1 answer

Parse JSON into array javascript with Twilio Function

Attempting to create a chat bot that will hit a web service midway through and ask questions based on previous responses. I have created a function that will return an array of people that I will then text these names and ask the user to pick…
markokstate
  • 923
  • 2
  • 14
  • 28
1
vote
1 answer

Twilio Web Chat Channel Listener

Is there any listener to check the Twilio chat channel update? I need to check is the chat channel active or inactive in customer web chat. Based on the status I will show/hide some components. Sometimes I need to inactive a chat channel using REST…
1
vote
1 answer

How to keep chatbar always open in Twilio Flex Web Chat

I am using Twilio UI 1.8.2 and Twilio Webchat UI 1.2.0, How can I keep expanded the chat window of Twilio Customer Chat Panel if the page is refreshed or open the same page (session) in new tab/page in the browser. By default, if I refresh the page…
1
vote
1 answer

twilio chat - add user to a channel and receive messages

I am working on twilio chat functionality for an app. Here's how it works:- The users actually get registered to twilio when they login to our app. and when I open the chat modal in our app, the user gets logged in to twilio also Now, the way it's…
faraz
  • 2,603
  • 12
  • 39
  • 61
1
vote
1 answer

Remove user from Twilio Chat Channel when tab is closed

Anybody is aware about a method to automatically unsubscribe/remove a user from a Twilio Programable Chat channel, after some time of inactivity ? The most simple scenario that comes to my mind is the one where a user closes the browser tab without…
colxi
  • 7,640
  • 2
  • 45
  • 43
1
vote
2 answers

How to Dynamically change the friendly name in Twilio Flex Webchat

So, I am following along the tutorial here on how to setup Twilio Flex WebChat. While it certainly works, I need to change the friendly name later on. The way my app works, it shows the webchat before users sign since the scripts are in the…
1
vote
0 answers

Twilio socket drops after a period of time

I've noticed after some amount of time ~ 20 minutes after I initialize chat, the connection drops and throws this error. Uncaught (in promise) Error: Can't connect to twilsock Is there any way to prevent this or reinitialize the chat when that…
Brandon
  • 85
  • 6
1
vote
0 answers

React Native using Twilio Programmable Chat and RN Gifted Chat

I'm building a mobile app with React Native. I'm using Twilio Programmable Chat along with React Native Gifted Chat. When testing in the simulator everything works as expected but when I load it on my actual device and try to send a message, it gets…
1
vote
1 answer

Twilio chat React Native SDK Error: Can't add command

I'm using the SDK client in React Native to add chat to my app using Twilio Programmable Chat. The code to send a message is below: client.sendMessage(message.text) .catch(err => console.log(err)); I am getting an error back in my console which…
Matt Leach
  • 839
  • 3
  • 10
  • 15
1
vote
2 answers

Twilio Programmable Chat with React Native

I am trying to add Twilio Chat to my react native project. I'm getting an error with the name SyncError and code 0. I'm just trying to confirm it's connected at this point. Here's my basic setup. Import at the top import {Client as Chat} from…
Matt Leach
  • 839
  • 3
  • 10
  • 15
1
vote
0 answers

Twilio Chat - getChannelBySid is very slow for 100 channels

I am using Twilio Chat Javascript SDK. https://media.twiliocdn.com/sdk/js/chat/releases/3.2.3/docs/Client.html#getChannelBySid__anchor This function is very slow when the user is part of 100 channels. This takes around 6-7 seconds to return channel…
Kanagaraj M
  • 639
  • 5
  • 16