I want to create a simple webhook to a chat room in chat.google.com. I am unable to see menu option to configure webhooks. What do GSuite admins have to do to enable webhooks?
Read the documentation, specially the part about limitations.
Related
The default way for third party clients to be notified when a payment has happened on stripe is mostly via Webhooks. However, I do not want to stress my users by giving them a webhook url to paste in their stripe dashboard to be notified when payment has happened. I want to simplify the process for them. Is there an alternative flow?
I'm looking at something similar to Sign In With Google once they authenticate the app against their stripe dashboard, payment alerts can be seemlessly retrieved.
Going through the Stripe connect Docs and I'm not sure Connect can be used to achieve this. I stand to be corrected though.
I need to implement this in NodeJS.
Any insights would be really appreciated.
Thank you.
It's not entirely clear what you're trying to achieve, but it sounds like you're operating as a platform and want to send some message to your users (who are Stripe account holders) to notify about payments.
You can do this using Connect webhooks to listen for payments on those connected accounts, eg by listening for payment_intent.succeeded or what is relevant for your integration.
You, as the platform, would set up a webhook to listen for these events, then you can use whatever communication channels you prefer with your users to notify them (eg: email, SMS, in-app notification etc)
I have developed a chatbot using dialogflow and hosted my webhook api to firebase cloud. I have integrated this bot to MS Team and Skype where I am able to access the bot from both channels. I have a requirement that I have to show "user typing..." notification to users in the chat window similar to session.sendTyping() having in MSBot. Do we have similar functionality using webhook option?
Any help would be appreciated.
Thank you!
This is not a feature that is built into Dialogflow. If you want to add this, you'll need to use another system to store the state of the focus and receive it on other devices. This could be accomplished through storing the boolean state in Firebase's database, for example.
I know Dialogflow (Api.ai) can be a bot in Slack. But what about monitoring the conversation and possibly manually intervene in the conversation? If possible, what would be the general direction to implement this?
So Slack has Open APIs for interacting with the Slack App. Here
Since you want to monitor the conversations so Events APIs and Conversations APIs would help you to notify as well as capture the conversations.
conversations.history will help you to fetch the messages within public or private channels.
Since you want to intervene in the conversation then I suggest using chatbot, which will provide a suitable way to intervene and respond to some particular events. Bot Users
Dialogflow has an sample on how to do this: https://github.com/dialogflow/agent-human-handoff-nodejs
You'll have to build you own front end for the human to override the response and call the Dialogflow query API to integrate:
Slack <--> Front end w/human override <--> Dialogflow's query API <--> Dialogflow Agent
Yes, it's possible. Just login to DialogFlow with your Google credentials, then on the left sidebar you can see the Integrations Tab. Click on it. You will find a bunch of different integrations for line, telegram, Twilio, kik, Viber, Skype and a lot more.
Click on Slack. It will ask you for some details for connecting with endpoints such as client ID, token, client secret. You can get it from the Slack API. You can also check the Slack API integration link here. After everything is properly set up, click the "Test in Slack" button in the DialogFlow Slack integration.
I'm able to get conversation details for webchat using https://webchat.botframework.com/api/conversations/[conversationId]/messages
Service URL for skype channel is https://skype.botframework.com, but I dont find any documentation for getting conversation details
You can use the DirectLine Rest API (see docs).
The Direct Line API is a simple REST API for connecting directly to a single bot. This API is intended for developers writing their own client applications, web chat controls, mobile apps, or service-to-service applications that will talk to their bot.
Within the Direct Line API, you will find:
An authentication mechanism using standard secret/token patterns
The ability to send messages from your client to your bot via an HTTP POST message
The ability to receive messages by polling HTTP GET
A stable schema, even if your bot changes its protocol version
You need to enable the DirectLine channel for your bot on (see screenshot)
You don't have to access each specific channel endpoint separately, you can do it all (with some limitations) through the DirectLine API.
Start a New Conversation
POST /api/conversations
Get Messages in a Conversation
GET /api/conversations/{conversationId}/messages
Send a Message
POST /api/conversations/{conversationId}/messages
The full details are in the docs as linked above.
Hope this helps
Can you be more specific about conversation details and what you're looking for?
Generally, you shouldn't assume those URL's are static BTW; an incoming message from the Bot Framework will have a ServiceURL that should be used for the life of that conversation. Some services may have multiple ServiceUrl's that they give out for different users.
Is there any way in which Chat User information can be identified like user name, logged-in ids etc. in Slack or Skype integration with Api.ai.
Thanks,
Dinesh
This feature is now implemented only for Slack service. You could use context generic and its parameters slack_user_id and slack_channel.
For another services you have to implement your own processing using api.ai open source bots.