Hi there!
I am newer to Bubble and have come across an issue that I am struggling to figure it out!
I have the twilio plugin to send a message when an action is being done, but I want to have the ability to text back to the twilio number and have it send an automated response from Bubble. In a perfect world, this would then change a status in my bubble app but I just want to know if it is possible to respond to these Twilio texts or not because I get the same error code in twilio. When I answer the twilio message, I get the message log in bubble so something is working, but when I go into twilio I get a content-type of the provided URL error code. Is there a way for this to work or am I at a dead end?
You can do this easily in Twilio directly using a function. It will auto-respond with whatever message you set when anyone texts the number.
exports.handler = (context, event, callback) => {
// Create a new messaging response object
const twiml = new Twilio.twiml.MessagingResponse();
// Use any of the Node.js SDK methods, such as `message`, to compose a response
twiml.message('PUT YOUR RESPONSE HERE');
// Return the TwiML as the second argument to `callback`
// This will render the response as XML in reply to the webhook request
return callback(null, twiml);
};
You then apply this to your phone number for incoming messages and attach the function. In my example below, the function I created is called smsreply.