Home

Awesome

Alexa.NET.Conversations

Extension for Alexa.NET that supports Alexa Conversations

Add Conversation Support to your skill

DialogApiInvokedRequest.AddToRequestConverter();
DialogDelegateRequestDirective.AddSupport()

Identify a Conversations Request

if skillRequest.Request is DialogApiInvokedRequest
...

Return a conversation api response

var response = ResponseBuilder.Empty();
response.Response = new DialogConversationResponse{
	ApiResponse = new Dictionary<string,object>{
	//... API properties returned here ...
	}
}

Hand off Conversation to Alexa Conversations

skillResponse.Response.Directives.Add(DialogDelegateRequestDirective.ToConversations(DelegatePeriod.ExplicitReturn))
})

Hand off Conversation to Skill

skillResponse.Response.Directives.Add(DialogDelegateRequestDirective.ToSkill(DelegatePeriod.NextTurn, updatedIntent))
})