Noun()

Returns a word in a mobile-originated (MO) message based on its position. A mobile-originated message is a message sent from the mobile device of a subscriber to your SMS phone number. Compare MO messages to mobile-terminated (MT) messages, which are messages that you send to a subscriber’s mobile device.

You can only use this AMPscript function in MobileConnect. You can’t use this function in email messages, landing pages, or other content types.

You can only use the Noun() function together with Msg(). The Noun() function accepts one parameter.

  • position (integer): Required. The position of the word to return. This function only returns words that come after the keyword. The first word after the keyword has an index of 0, the second word has an index of 1, and so on.

This function parses a message that was sent to you by a subscriber (an MO message). It returns a specific word that follows the keyword, based on the position of the word that you want to return.

If the keyword is “OFFER” and an MO message contains the text “OFFER John Smith”, the example code returns “Smith”.