According to this question, the requestAttributes
property of lexEvent
can be checked to determine whether an incoming request supports voice.
However, in my C# Lambda, that property is null:
public LexResponse FunctionHandler(LexEvent lexEvent, ILambdaContext context)
{
LambdaLogger.Log($"Request Populated: {lexEvent.RequestAttributes != null}");
Logged:
2020-08-20 18:03:04: START RequestId: f363e694-77e4-40fe-b607-ddaf51b6852f Version: $LATEST
2020-08-20 18:03:04: Request Populated: False
How, in the context of the C# developer's kit, can I determine whether the request my lambda is processing is voice or text?