Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channelname slot based intents #26

Merged
merged 32 commits into from Aug 30, 2020

Conversation

AdarshNaidu
Copy link
Contributor

@AdarshNaidu AdarshNaidu commented Jul 28, 2020

This PR contains intents that require channel name resolution before intent confirmation.

This PR contains the following intents:

  1. Archive Room
  2. Unarchive Room
  3. Leave Room
  4. Delete Room
  5. Change room topic
  6. Change room description
  7. Rename room
  8. Change Status
  9. Denied Intent Handler
  10. Create Channel
  11. Create Group

Additional features in this PR

  1. This PR also introduces a generic reprompt message that responds with:

Anything else I can help you with?

after executing an intent or after any error message.

  1. These above intents also give random hints for the user to try after the end of an intent or after any errors.

These intents make use of the following intent generation functions:

  1. handleConfirmationChannelResolution: This function generates an intent which handles confirmation for any operation that requires channel name resolution. The intent generated from this function responds with intent confirmation or an error message if any. It resolves channel name from the list of rooms that the user is part of before giving confirmation. This function also takes a function as one of the parameters which gets executed at the end. This makes this intent generator function flexible, as it can be modified according to different intents.

  2. handleExecutionChannelResolution: This function is responsible for executing the operation if the user has confirmed the intent. This function also takes a function as parameter making it more flexible.

@AdarshNaidu AdarshNaidu marked this pull request as ready for review July 28, 2020 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants