question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding quick replies

See original GitHub issue

I would like to use quick replies in my chat (see the messenger documentation) It would basically be like a bubble, without the agent picture with some propositions, and when the user click on it, it is displayed as a user bubble.

Ideally, the quick replies could have a display value and an internal value (one displayed to the user, and one that can be sent to a backend API)

Do you plan to add this feature ? I think I could make it work with a custom component but it would be nice to have a addQuickReplies() like addLinkSnippet()

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
WoodyFleurantcommented, Feb 18, 2019

Hello guys, it seems that this feature was not published into npm. I cannot use Quick replies with npm install, I checked into node_modules, and the changes reflected here are not inside the code. Could you please check this out ? I also tried to use this git repository directly with npm install Wolox/react-chat-widget but it keeps saying Module not found: Can’t resolve ‘react-chat-widget’

1reaction
thomas-negraultcommented, Jan 25, 2018

I made a really simple custom component:


class QuickReply extends Component {
    constructor(props) {
        super(props);
        this.state = {replied: false};
        this.sendQuickReply = this.sendQuickReply.bind(this);
        toggleInputDisabled()
    }

    sendQuickReply = (reply) => {
        this.setState({
            replied: true
        });
        addUserMessage(reply);
        toggleInputDisabled();
    };

    render() {
        if (this.state.replied == true) {
            return (null);
        }
        return (
            <div className="message">
                {this.props.propositions.map(r => <div key={r} className={"response"}onClick={this.sendQuickReply.bind(this, r)}>{r}</div>)}
            </div>)
    }
}

How can I disable user input when I display my quick replies ?

Edit: my bad, just saw the toggleInputDisabled function

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick Replies - Messenger Platform - Meta for Developers
To send a quick reply, add the quick_replies array to a text message, and include objects that define up to 13 quick reply...
Read more >
Create quick replies | Microsoft Learn
To create a quick reply, select New, or to edit an existing quick reply, select the name of the quick reply. Provide or...
Read more >
Quick Reply for Microsoft Outlook - Ablebits
With the Quick Reply add-in for Outlook, all you need is to select the right email and choose the appropriate reply from the...
Read more >
How do I create & manage Quick Replies? - Helpshift Support
To create new Quick Replies, navigate to Settings > Workflows > Quick Replies. On this page, you can create folders to organize your...
Read more >
What are quick responses and how to create them?
1 - Go to Groups&Users and press the quick reply icon, which you'll see on the right of the screen: 2 - Click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found