Skill Flow Builder (SFB) is a new Alexa development framework that allows developers, designers and content writers to create branching or narrative driven skills in an easy way. One of the main advantages of SFB is that it offers a collaborative environment for development teams that allows developers and designers to work in parallel. It is composed of:
In this first blog post we will focus on setting up both sides: the SFB Editor and the SFB Core. In the future we will focus on editor elements, the SFB syntax and how to build your first SFB skill from scratch.
Most of the available SFB samples are related to story games, but SFB can be applied to any business case where a decision tree is required. Some of the use cases where you can benefit from SFB are:
1. Ensure Node is available. Check it by running node -v . For example:
> node -v
v12.14.1
If you already have the prerequisites go to step #7, to do a clean setup start from step #1.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"lambda:CreateFunction",
"iam:GetRole",
"polly:SynthesizeSpeech",
"lambda:ListFunctions",
"lambda:GetFunction",
"logs:DescribeLogStreams",
"iam:CreateRole",
"iam:AttachRolePolicy",
"lambda:UpdateFunctionCode",
"s3:PutObject",
"s3:GetObject",
"iam:PassRole",
"lambda:AddPermission",
"logs:GetLogEvents",
"logs:FilterLogEvents",
"s3:PutObjectAcl",
"dynamodb:CreateTable",
"dynamodb:PutItem",
"dynamodb:DeleteItem",
"dynamodb:GetItem"
],
"Resource": "*"
}
]
}
Now you should have completed the setup of your Editor and the Core components. Let’s play with the Editor and create our first project:
1. Open the SFB Editor:
2. In the Editor view click on File → New Project (Don’t worry we will explain you how to use the editor and all elements in the following posts):
3. In the Pop-up Window provide a name and a location for your first project and select the template Example Story. This sample will show you how the decision tree works and how an interactive story is played:
4. After clicking OK you will have an initial view of the flow, just click on the Play button tab on the top right corner and select Simulate from start:
Now you will be able to play with your first project using the Simulate view. Select different options, navigate and get used to the editor structure. In the upcoming blog posts we will explain all editor elements, the SFB syntax and how to build your first SFB skill from scratch.