I've been working on an alternative solution to using non-keyword responses. I've been able to get that part working, however, when I try adding an AMPscript function to add or update a data extension record, I get an error thrown at me saying "There was an error processing your message".
Here's what I have set up:
Outbound message: "Hi! Would you like to receive more mobile messages? Reply Y or N
%%[ var @nxtkywrd set @nxtkywrd = CreateSmsConversation("85240",MOBILE_NUMBER,"Next_Keyword","MOBILECONNECT") ]%%
Text Response message:
%%[ VAR @message IF (Uppercase([MSG(0).NOUN(0)]) == "YES") OR (Uppercase([MSG(0).NOUN(0)]) == "Y") THEN SET @message = "Thank you for consenting to receive messages." ELSE SET @message = "Ok, no more messages" ENDIF ]%% %%=v(@message)=%% %%[ VAR @response SET @response = v([MSG(0).NOUNS]) UpsertData('Data_Extension',1,'Mobile_Phone',MobileNumber,'Text_1_Response',@response) ]%%
The text response works without the UpsertData function. I've tried InsertData, UpdateData, but none seem to work. Any suggestions?