Skip to content

Adding pre-programmed button support in quick replies.#43

Merged
renatobecker merged 14 commits into
RocketChat:masterfrom
PrajvalRaval:master
Oct 15, 2020
Merged

Adding pre-programmed button support in quick replies.#43
renatobecker merged 14 commits into
RocketChat:masterfrom
PrajvalRaval:master

Conversation

@PrajvalRaval
Copy link
Copy Markdown
Contributor

@PrajvalRaval PrajvalRaval commented Sep 4, 2020

This PR adds support for buttons that perform a specific action in the app - Handover and Close Chat. Anyone can add them by simply pasting the provided code blocks in your Quick Replies payload.

This way the dev will only have to paste a block with particular actionId set as df_perform_handover and when a visitor clicks on it, it will perform handover to Target department set in App settings. Similarly, on clicking the button with actionId = df_close_chat, it will close the Live Chat session.

Payload Example

Example-Dialogflow-Pre-Programmed-Buttons

Comment thread handler/ExecuteLivechatBlockActionHandler.ts
@PrajvalRaval
Copy link
Copy Markdown
Contributor Author

Requesting @renatobecker for a review. 😄

Comment thread handler/ExecuteLivechatBlockActionHandler.ts Outdated
Copy link
Copy Markdown
Contributor

@murtaza98 murtaza98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PrajvalRaval PrajvalRaval requested a review from murtaza98 October 1, 2020 18:29
@PrajvalRaval
Copy link
Copy Markdown
Contributor Author

@murtaza98 added a few changes as per your request. Please review and let me know for any changes. Thanks

Comment thread handler/ExecuteLivechatBlockActionHandler.ts
Comment thread lib/Message.ts
Co-authored-by: Murtaza Patrawala <34130764+murtaza98@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@murtaza98 murtaza98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PrajvalRaval some modifications regarding the department name property is required. Thanks ✌️

@PrajvalRaval PrajvalRaval requested a review from murtaza98 October 2, 2020 16:11
@PrajvalRaval
Copy link
Copy Markdown
Contributor Author

Made your requested changes @murtaza98 😄

Comment thread handler/ExecuteLivechatBlockActionHandler.ts Outdated
Comment thread handler/ExecuteLivechatBlockActionHandler.ts Outdated
PrajvalRaval and others added 2 commits October 2, 2020 21:47
Co-authored-by: Murtaza Patrawala <34130764+murtaza98@users.noreply.github.com>
Co-authored-by: Murtaza Patrawala <34130764+murtaza98@users.noreply.github.com>
@PrajvalRaval PrajvalRaval requested a review from murtaza98 October 2, 2020 16:18
@murtaza98
Copy link
Copy Markdown
Contributor

@renatobecker This PR is ready to be merged 🚀

@murtaza98 murtaza98 changed the base branch from master to v1.3.0 October 6, 2020 05:46
Comment thread config/Settings.ts Outdated
Comment thread docs/QuickReplies.md
Comment thread docs/QuickReplies.md
Comment thread enum/Dialogflow.ts Outdated
@renatobecker renatobecker changed the base branch from v1.3.0 to master October 7, 2020 18:08
PrajvalRaval and others added 2 commits October 8, 2020 13:09
Co-authored-by: Renato Becker <renato.augusto.becker@gmail.com>
@renatobecker renatobecker merged commit 9e8f247 into RocketChat:master Oct 15, 2020
Shailesh351 pushed a commit to Shailesh351/Apps.Dialogflow that referenced this pull request Feb 16, 2021
…t_typing

Add displayTyping property in customFields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants