twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

How to enable "Autocreate a Conversation" for my Messaging Service using the Node.js SDK?

Open hotmailbelike opened this issue 2 years ago • 1 comments

Issue Summary

Using the SDK, how do I update my Messaging Service's "Integration" section's "Incoming Messages" options? I want to set it to "Autocreate a Conversation" I have attached a screenshot of the Twilio Console 👇 image

I tried updating the Messaging Service's "useInboundWebhookOnNumber" to false but it did not have any effect (code sample given below)

Steps to Reproduce

  1. Log into your own Twilio Console
  2. Create your Messaging Service and note down its SID
  3. In your code initialize your Twilio Client using your auth token and account SID
  4. Run the code snippet given below, be sure to properly set your Messaging Service SID

Code Snippet

client.messaging.v1
            .services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
            .update({
                useInboundWebhookOnNumber: false,
            })
            .then((service) => {
                console.log(
                    '📣 -> file: twilio-message.service.ts:335 -> .then -> service:',
                    service,
                );
            });

Response Screenshot:

image

As you can see that the "useInboundWebhookOnNumber" is being set to false as I requested but the changes are not being reflected on the Twilio Console.

Technical details:

  • twilio-node version: 14.10.0
  • node version: 14, 16, 18, 20 (tried in all of them)

Please help me resolve this. This is one of the most important feature of my app, without this I can't create Conversations when SMS is sent from another number to my Twilio Number.

hotmailbelike avatar Aug 21 '23 23:08 hotmailbelike

Any updates on this?

oleksiyboyko avatar Apr 14 '25 19:04 oleksiyboyko

Hello! We are looking into resolving this ASAP.

manisha1997 avatar Jul 01 '25 06:07 manisha1997

Hello! I connected with the Backend team and this functionality is only available via the console and not via the API. If you want to have this feature added to the API, raise query through Twilio Support. https://help.twilio.com/

manisha1997 avatar Jul 02 '25 05:07 manisha1997