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.

RFC: Quick Replies

See original GitHub issue

Not sure if this library can do suggested responses but it would be very helpful for people who build chat bots.

Something like this: customer-chat

Facebook calls them quick_replies: https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies

Kik calls them suggested_responses https://dev.kik.com/#/docs/messaging#suggested-response-keyboard

Telegram calls them inline_keyboard https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:15

github_iconTop GitHub Comments

7reactions
watadarkstarcommented, Apr 14, 2018

@xcarpentier @brunocascio @FaridSafi Looking for input on the API for this feature as I’m planning to work on this feature.

The API I’m thinking of is:

Message:

{
  _id: 1,
  text: 'My message',
  "quickReplies":[
      {
        "contentType":"text",
        "title":"Yes",
        "imageUrl":"http://example.com/img/yes.png"
      },
      {
        "contentType":"text",
        "title":"No",
        "imageUrl":"http://example.com/img/no.png"
      }
    ]
}

Component Props:

onQuickReply (Function) - Callback when sending a quick reply renderQuickReply (Function) - Custom quick reply

onQuickReply(quickReply) {
   if(quickReply.contentType === "text") {
         // send text message
    } else if (quickReply.contentType === "location") {
        // send location
    } else if (quickReply.contentType === "camera") {
        // open camera then send video / image
    }
    // infinite possibilities 
}
...
<GiftedChat onQuickReply={quickReply => this.onQuickReply(quickReply)}>}
2reactions
Webdev259commented, May 27, 2019

can i make application for phone call , messages,block number, etc etc auto response application using react native

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick-Start for TCP and IP RFC 4782 - IETF Datatracker
Quick -Start for TCP and IP RFC 4782 · 1. Fast Start-Ups without Explicit Information from Routers ..54 A. · 2. Optimistic Sending...
Read more >
RFC 5230: Sieve Email Filtering: Vacation Extension
Address Parameter and Limiting Replies to Personal Messages . ... is away for an extended period of time and that they should not...
Read more >
RFC822: Standard for ARPA Internet Text Messages
RFC # 822 Obsoletes: RFC #733 (NIC #41952). RFC822: Standard for ARPA Internet Text Messages. Revised by David H. Crocker. Dept. of Electrical...
Read more >
[RFC|Merged] Preview from Quick Reply - Area51 @ phpBB.com
In my opinion, the Full Editor button on the default quick reply should be replaced with a Preview button. I don't see the...
Read more >
RFC daily email - AMS Advanced User Guide
Pending Customer Approval: Lists RFCs that are in PendingApproval status, awaiting your approval · Pending Customer Reply: Lists RFCs that are awaiting your ......
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