Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hotmailbelike opened this issue Aug 21, 2023 · 0 comments

Comments

@hotmailbelike
Copy link

hotmailbelike commented Aug 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant