Processing replies with a Filter Pack

Top  Previous  Next

Note: PageGate's filter pack supports RegEx expressions, which can allow you to implement an incredibly intricate system.

 

To say that there are many things you can do with a properly coded filter pack would be an understatement. The Filter Pack allows you to modify and conditionally modify any part of what it interacts with. It can reassign who a message is delivered to based on words or phrases in a reply, it can modify the body of the message, it can modify the subject line, it can insert pre-determined text and many other things.

 

For instance, with the filter pack, you can tell PageGate to conditionally change who receives the message based on what the text in the reply is. As an example, you could configure a filter system so that any time the word lunch shows up in a reply message, that reply is sent to the cafeteria group instead of the general replies group.

 

You could configure a system where replies from a certain phone number will always be copied to certain recipients or groups.

 

You could configure a system where certain keywords or phrases are replaced with other keywords or phrases. For example, you could translate a code like PD4N in to 4th Precinct.

 

You could configure a system to describe every element I've just described all at once, it's just a matter of coding your filter pack to perform the actions you want.

 

This section is designed to give you an idea of what a filter pack is capable of providing but does not represent its total capabilities.

 

Example 1

In this example, we'll configure a reply system to that any time someone replies to a message with 'unsubscribe' or 'subscribe', those replies are sent to an 'unsubscribe' or 'subscribe' distribution group for notification. If 'subscribe' or 'unsubscribe' aren't found, the reply is sent to a general replies recipient or group.

 

Example 2

In this example, we'll configure a reply system to that any time someone replies to a message with 'unsubscribe' or 'subscribe', those replies are sent to a recipient named 'unsubscribe' or 'subscribe' that executes a batch file or script. If 'subscribe' or 'unsubscribe' aren't found, the reply is sent to a general replies recipient or group. This can be especially useful if you're using an SQL environment and have PageGate's database linked to it with ODBC expressions. In theory, you could code a script to be executed that would automatically remove a responding phone number from the users table of the database any time the 'unsubscribe' script was executed.