Skip to content

Extension for Alexa.NET that supports Alexa Conversation requests

License

Notifications You must be signed in to change notification settings

stoiveyp/Alexa.NET.Conversations

Repository files navigation

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))
})

About

Extension for Alexa.NET that supports Alexa Conversation requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages