Git Product home page Git Product logo

bot-connector's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bot-connector's Issues

Channel suggestion: connect to Ryver

I'm new to bots and very interested. I am the community organizer for OSS on IBM i and we primarily use Ryver as the platform for our communication/collaboration. They already have some integration using Hubot (I don't know much about it and I'll be looking into that soon). I would very much like to see those capabilities expanded as I envision a great opportunity there to hook up bots to deliver functionality similar to what we've seen in the Slack world.

https://support.ryver.com/ryver-apis-overview/

Data Encryption

Hi everyone can you please help me out in resolving my query. I have to encrypt the data user write in chat what will be the workaround. I don't want my data to leave my premise.

Carouselle without buttons doesn't work (facebook messenger)

Hi,

I think i detected two problems:
First of all, message type 'carouselle' is missing in your "structured message "documentation.

On the other hand, I tried to use theses lines of code :

          message.addReply(
            {
              type: 'carouselle',
              content: [
                {
                  title: 'title',
                  subtitle: 'subtitle',
                  imageUrl: 'image_url',
                },
              ],
            });

But an exception was thrown by the superagent request (statusMessage: 'Internal Server Error').

And if I tried to send an empty buttons array, i get this error message :

    text: '{"message":"Error while sending message","results":{"status":400,"response":{"req":{"method":"POST","url":"https://graph.facebook.com/v2.6/me/messages?access_token=EAAGPNWjtXXgBAKiaPffklr8BUBWjCqbVFLk7T6LfHUZBnpRQVThSoQuomM5PZCZAzgYYQyRCsiP9gGtDrLrN9dRU21ZBlyOqc1CgfqzAuqJi2UlGTqUcQuY4ce5fKJThmz5jhsyKcOTKUvUtDxxI4gAPi6Q6ZBtoEVGhfKh6d0QZDZD","data":{"recipient":{"id":"1505883169485050"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":[{"subtitle":"sous-titre","title":"titre","image_url":"https://beebom-redkapmedia.netdna-ssl.com/wp-content/uploads/2016/01/Reverse-Image-Search-Engines-Apps-And-Its-Uses-2016.jpg","buttons":[]}]}}}},"headers":{"user-agent":"node-superagent/3.5.2","content-type":"application/json"}},"header":{"www-authenticate":"OAuth \\"Facebook Platform\\" \\"invalid_request\\" \\"(#194) param [elements][0][buttons] has too few elements.\\"","access-control-allow-origin":"*","pragma":"no-cache","cache-control":"no-store","x-fb-rev":"2991045","content-type":"text/javascript; charset=UTF-8","x-fb-trace-id":"HbHp42Cb/nj","facebook-api-version":"v2.9","expires":"Sat, 01 Jan 2000 00:00:00 GMT","x-fb-debug":"bVRjXf34A06dcGItliHabsXLSCv4f0Gu03rClKlD8M/jPp37pFtqpUXmDEDiS5u2Z67SQ85iZTnHZseQIeocGQ==","date":"Mon, 01 May 2017 09:09:49 GMT","connection":"close","content-length":"144"},"status":400,"text":"{\\"error\\":{\\"message\\":\\"(#194) param [elements][0][buttons] has too few elements.\\",\\"type\\":\\"OAuthException\\",\\"code\\":194,\\"fbtrace_id\\":\\"HbHp42Cb\\\\/nj\\"}}"}}}',

In facebook documentation (https://developers.facebook.com/docs/messenger-platform/send-api-reference/generic-template), buttons is not mandatory :

image

Channel suggestion: link to Zinc.it

Me again, still new to bots. In my day job I'm an independent consultant, working in the world of digital transformation for enterprise businesses and their legacy systems running on IBM i for Power Systems servers. I've been focusing in the last year on the API layer on the server-side and am now shifting my focus to bots for new interactions with those APIs. One of the considerations for business data in this context is data security - I've found Zinc.it to be a stellar solution in that market space (there may be others, this is the one I have used in past projects).

So this connection would be more specialized in that is solves the issues that enterprises face with mobile solutions requiring HIPAA compliance, etc. I believe bots can serve the enterprise in different ways than in the consumer space, but still with great success. I'd like help deliver some of that business value to my clients and an integrated bot-connector makes that possible.

https://www.zinc.it/

List is not displayed in Facebook Messenger

Hello guys,

When the response message is a list type, it is not displayed in Messenger.
I have this similar issue with Webchat, and it was fixed, please refer to the issue in Webchat repo
SAP/Webchat#12.

I was told that this will happen when the image url is empty, but when i specify the image url, the list is still not displayed. Please help to check. Thanks a lot!

Channel Suggestion: SMS via Twilio

Hey everyone !

The bot-connector looks great (thanks for making it open source) and Recast seems to have improved greatly during the last few months (the "Build" UI looks intuitive). So I'm thinking of building a chatbot with Recast to see how it compares to our in-house chatbot ๐Ÿ˜ƒ

We use SMS (via Twilio) at Reassurez-moi.fr because it's a simple way to reach our customers (they don't all have access to messaging apps like WhatsApp, but they all have a mobile phone number).

What do you think of SMS as a communication channel for bots ?

A few things that might need attention:

  • how to deal with "Quick Replies" ?
  • decoupling the connector from a specific SMS API, or naming it "TwilioSMS" instead of just "SMS" ?

Thanks again !
โ€” Conrad

implementation doesn't match API documentation and comments

Hello,
you have replaced the path /bots/ by /connectors/ or the opposite but the implementation doesn't match your API.
Moreover I noticed the list listing of connectors doesn't seem implemented.
` /**

  • @api {delete} /bots/:bot_id/channels/:channel_slug Delete a Channel
  • @apiName deleteChannelByConnectorId
  • @APIGroup Channel
  • @apiDescription Delete a Channel
  • @apiParam {String} channel_slug Channel slug.
  • @ApiError (Not found 404) {String} message Return if either the Connector or the Channel doesn't exist
    */
    {
    method: 'DELETE',
    path: '/connectors/:connector_id/channels/:channel_slug',
    validators: [],
    handler: controllers.Channels.delete,
    },
    ]`

Thank you in advance.

More rich features for Telegram

Hi, I'm aware that the enabled rich message features enabled for Telegram are only text and images. Will you be enabling buttons in the near future? Telegram has had that feature for a while.

Thanks!

Cannot POST /connectors

Hi,

Brand new install, bot-connector responds fine on my ngrok-generated url.
However, when I try to run curl -X POST 'http://localhost:8080/connectors' --data 'url=YOUR_BOT_ENDPOINT_URL' (I replaced YOUR_BOT_ENDPOINT_URL with my ngrok url), it responds:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /connectors</pre>
</body>
</html>

I can see the routes and connectors look fine. Not sure why it's not working?

No route protection

There aren't any security mechanisms at all.
It seems as everybody can send requests to create new bots ir change endpoints.
Or am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.