sap-archive / bot-connector Goto Github PK
View Code? Open in Web Editor NEWBot Connector allows you to connect your bot to multiple messaging channels.
License: MIT License
Bot Connector allows you to connect your bot to multiple messaging channels.
License: MIT License
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.
I thought it would be cool to add the source channel in the message json, so that we can add specific logic for a channel or just for analytics in our bots :)
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.
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 :
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.
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!
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:
Thanks again !
โ Conrad
Hey,
I notice that in Bot fallback channels, SAP Customer Engagement Center is one option. Does this mean Bot connector already supports Engagement Center?
BRs,
yangyang
in config webhook :
"webhookToken" not "SLUG_OF_YOUR_BOT"
Are there any plans to connect with Microsoft Teams? It has support for bots and connectors.
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.
` /**
Thank you in advance.
Anyone interested to maintain a fork of this repo? I'm interested anyway at https://github.com/a-mma/chatbot-channel-connector any help is appreciated.
Hello!
So, as the title says, buttons with web_url type doesn't work on SAP JAM. Instead of opening the link on "value", they send the value as postback.
Hope you guys have time to solve this! :)
Create a new channel in the Bot Connector API: Line (https://line.me/en-US/) following these guidelines: https://github.com/RecastAI/bot-connector/wiki/01---Add-a-channel
So developers will be able to connect a chatbot to Line ;)
Did you have a deadline to get the Telegram integration working?
i see that you open sourced the webchat, there is a pollMessages in the webchat code that normally hit the bot-connector
could you publish the bot-connector code that should receive the request ?
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!
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?
Hi,
I am trying to create a new channel using API https://api.recast.ai/connect/v1/channels
I am passing appropiate parameters but still it gives 500 server error.
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?
Create a new channel in the Bot Connector API: Wechat (http://open.wechat.com/) following these guidelines: https://github.com/RecastAI/bot-connector/wiki/01---Add-a-channel
So developers will be able to connect a chatbot to Wechat ;)
Hi, will this work with bots done using MS framework?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.