Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@ac-reusable-dialogs/feedback-elicitation
Advanced tools
ACDL reusable dialog for eliciting feedback from users
Feedback Elicitation is an ACDL Reusable Dialog that gives skill developers an easy way to collect feedback about their skill from customers. Currently, Feedback Elicitation requests and collects a numeric rating from the user.
npm i -g @alexa/acdl
npm i @ac-reusable-dialogs/feedback-elicitation
Name | Type | Description |
---|---|---|
feedback_prompt | APLA | The APLA response prompt to be used for requesting feedback |
payload | Thing | Response payload of the previous action called |
notifyAction | Action | Previous action called before calling the FeedbackElicitation dialog |
Type | Description |
---|---|
Nothing | nothing literal |
** Feedback Elicitation must be called after an action call. It will act as the response after the action then offer up the feedback elicitation action.
...
import com.ac.reusable.dialogs.feedback.*
sample_apla = apla("../resources/prompts/sample_apla/document.json")
type SamplePayload {
Number num
}
action Number sampleAction()
...
sample {
...
x = sampleAction()
GetFeedback(feedback_prompt=sample_apla, payload = SamplePayload {num = x}, notifyAction = sampleAction)
...
}
This is NumberBot, a skill that generates a random number, then collects feedback on the experience
namespace com.numberbot
import com.amazon.alexa.ask.conversations.*
import com.amazon.ask.types.builtins.AMAZON.*
import com.amazon.alexa.schema.Nothing
import com.amazon.alexa.schema.Thing
import com.amazon.alexa.schema.Number
import com.ac.reusable.dialogs.feedback.*
numericfeedback_apla = apla("../response/prompts/numericfeedback_apla/document.json")
mySkill = skill(
locales = [Locale.en_US],
dialogs = [MainDialog],
skillLevelResponses = SkillLevelResponses
{
welcome = prompts.AlexaConversationsWelcome,
out_of_domain = prompts.AlexaConversationsOutOfDomain,
bye = prompts.AlexaConversationsBye,
reqmore = prompts.AlexaConversationsRequestMore,
provide_help = prompts.AlexaConversationsProvideHelp
},
invocationNames = [ InvocationName
{
locale = Locale.en_US,
invocationName = "acdl number feedback bot"
}
]
)
type NumPayload {
Number num
}
getStart = utterances(["give me a number please"])
action Number getNumber()
//main
dialog Nothing MainDialog {
sample {
expect(Invoke, getStart)
number = getNumber()
//Feedback Elicitation usage
GetFeedback(numericfeedback_apla, payload = NumPayload {num = number}, notifyAction = getNumber)
}
}
sample {
expect(Invoke, getStart)
//Feedback Elicitation usage
GetFeedback(numericfeedback_apla, payload = NumPayload {num = num}, notifyAction = getNumber)
}
sample {
expect(Invoke, getStart)
//Feedback Elicitation usage
GetFeedback(numericfeedback_apla, payload = NumPayload {num = num}, notifyAction = getNumber)
response(sample_apla, Notify {actionName = getNumber}, payload = NumPayload {num = num})
}
...
Alexa: Please give this interaction a rating between 1-5, where 5 is the highest rating
User: Two
Alexa: Thank you for the feedback!
...
This library is licensed under the Amazon Software License.
FAQs
ACDL reusable dialog for eliciting feedback from users
The npm package @ac-reusable-dialogs/feedback-elicitation receives a total of 5 weekly downloads. As such, @ac-reusable-dialogs/feedback-elicitation popularity was classified as not popular.
We found that @ac-reusable-dialogs/feedback-elicitation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.