We need a component for generating prompts. A prompt is a templates for a notification.
PromptFactory will contain methods for generating these prompts.
Example
PromptFactory.createWelcomeGreeting({ values }) may return the string 'Hello _NAME', where '_NAME' will be replaced by the value '_NAME' value in the values object.
This component is useful because it separates the text generation process from the notifier.
Put this component in bot/components/promptFactory.
We need a component for generating
prompts
. Aprompt
is a templates for a notification.PromptFactory
will contain methods for generating these prompts.Example
PromptFactory.createWelcomeGreeting({ values })
may return the string 'Hello _NAME', where '_NAME' will be replaced by the value '_NAME' value in thevalues
object.This component is useful because it separates the text generation process from the notifier.
Put this component in
bot/components/promptFactory
.