How to enable "Autocreate a Conversation" for my Messaging Service using the Node.js SDK?
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 👇
I tried updating the Messaging Service's "useInboundWebhookOnNumber" to false but it did not have any effect (code sample given below)
Steps to Reproduce
- Log into your own Twilio Console
- Create your Messaging Service and note down its SID
- In your code initialize your Twilio Client using your auth token and account SID
- 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:
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.
Any updates on this?
Hello! We are looking into resolving this ASAP.
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/