Messaging conversation routing
Through Automatic Messages, you can create functions triggered based on selected events. A payload is sent to a function containing metadata related to the specific conversation and based on the selected event during the invocation.
Enable the automatic messages feature and Create a new function using the 'Messaging conversation routing' messaging events. You can select one of the available templates for the chosen event. Currently, you can create only one function per template type for these conversational events. A deployed function on a specific messaging event can be invoked on multiple conversation events. For more information please visit Developers