Link in dialogflow chatbot using kommunicate - button

I'm so much trying to integrate links in my chatbot using dialogflow.
I tried to integrate it using 'kommunicate'. but I can't insert the key value in kommunicate.

Kommunicate supports Rich message - Link buttons, where you need to use the JSON code on the custom payload section of the Dialogflow intent. Please to refer this doc for more details.

Related

Firebase dynamic links - custom suffix

I made a simple python script to generate firebase dynamic links for my app using POST API
https://firebase.google.com/docs/dynamic-links/rest
However, in web UI I can set custom link address (i.e. example.app.goo.gl/customlinkname), while using API address seems to be always auto-generated.
Is there such a feature using POST API?
I tried to set "option": CUSTOM with customSuffix parameter, however response was that option CUSTOM is not supported.
Nope -- this feature is not available using the REST or Client SDKs. Only for Dynamic Links that you create using the Firebase Console.

Adding button to Slack Channel Message using Zapier Integration

Does anyone know of a way to add interactive buttons to a slack channel messages that are created using the Zapier slack channel message integration?
David here, from the Zapier Platform team. Sorry to be the bearer of bad news, but that's not currently possible. Because of the way button interactions are handled (centrally, to a single url for all buttons created with Zapier), we haven't come up with a good way for users to add buttons to their messages that would be in any way useful.
We track all feature requests that come in through tickets, so if you'd like to voice your support and get notified if/when this does get implemented, I'd suggest emailing in to contact#zapier.com.
There is a way to add buttons, but you need a premium account. It works by using the Zapier webhook function to send a POST request directly to the Slack API.
You can follow this tutorial to prepare everything in Slack
Then you need to add a custom request step in Zapier:
Screenshot from Zapier
Select method "POST" and paste the URL from your Slack application management tool
Build your Slack message using the Slack Block Kit Builder
Paste the JSON from the Block Kit Builder into the data field in Zapier
Replace text from JSON with dynamic fields from Zapier where necessary
Likely if you want to have buttons, you would want to use them to trigger further Zapier events. For this, follow these steps:
Create new Zap triggered by Webhooks by Zapier
Select "Catch requests"
Copy Request URL
Navigate to your Zapier application management tool and find your app's Interactive Components section
Paste Request URL from Zapier

Firebase invites - facebook and twitter options

I have Firebase invites working with email and SMS just fine. I'm clueless when it comes to sharing via Facebook or twitter however. What are my options for sharing data with invites to facebook via Firebase? I can't find any info on this anywhere - except that Facebook offers its own invite api. I'm trying to just use Firebase if possible though, so I'm just trying to figure out how to customize the "share sheet" that I see referenced in various loctions online (without much info associated with those references). I can't tell if the share sheet is just a list of actions that I need to handle my own way, with just the email and sms option handled by google and I handle the rest of the options using the various apis out there.
In my current implementation, I use the deep link that the invite exposes and store the id of some data that I want the specific user to have access to. Then store that data in a firebase database. But what is the correct method to share to facebook users? Is it to just use facebook's api and expose it somehow in my own "custom share sheet"? Where can I find documentation on the share sheet?
Thanks for clarifying any of this if you can!
Cheers,
Mike
Currently I believe the only way to share to sources other than Email & SMS you would need to implement your own custom sharing functionality. It's hinted at in the Invites Documentation Best Practices section titled "Build a Custom Share Sheet".
Firebase Invites is built on top of Firebase Dynamic Links so if you want a link that takes the users to the app store to install your app you can create a simple dynamic link using one of these methods.
For implementing custom share sheets it depends on your platform as each has a different way of implementing sharing functionality.
My answer might not be ideal as I am looking for an alternative as well, but you could manually add different social media shares manually. What I wanted to do was send a deep link using the share feature already implemented by google but with no luck.
// Regular share I want to use this and send deep link :(
Intent myShare = new Intent(Intent.ACTION_SEND);
myShare.setType("text/plain");
String shareBody= "Messsage here";
String sub = "Title";
myShare.putExtra(Intent.EXTRA_SUBJECT, sub);
myShare.putExtra(Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(myShare, "Share using"));
/FACEBOOK SHARE
/*ShareLinkContent content = new ShareLinkContent.Builder()
.setContentUrl(Uri.parse("deeplinkhere"))
.build();
ShareDialog shareDialog = new ShareDialog(HomepageActivity.this);
shareDialog.show(content);*/
// Google Invites
/* Intent inviteIntent = new AppInviteInvitation.IntentBuilder(getString(R.string.invitation_title))
.setMessage(getString(R.string.invitation_message))
.setDeepLink(Uri.parse(getString(R.string.invitation_deep_link)))
.setCustomImage(Uri.parse(getString(R.string.invitation_custom_image)))// the image address on server for invite by email.
.setCallToActionText(getString(R.string.invitation_cta))
.build();
startActivityForResult(inviteIntent, REQUEST_INVITE);*/
//startActivity(new Intent(HomepageActivity.this,InviteActivity.class));

Access link previews from the Bot API

According to Telegram docs:
Link Preview is generated server-side
I'm trying to make a bot to process the info in the link preview for links sent by users, but I couln't find a way to get that information from the Bot API.
Is there any way to ask the API for the information the link preview shows?
Although there is no API method to get this information, Telegram uses the Open Graph Protocol to generate its Link Previews.
Any open graph client will provide the same information that Telegram shows in their Link Previews.
Is there any way to ask the API for the information the link preview shows?
The answer would be no. The Bot API cannot process the information in the link preview.
I'm trying to make a bot to process the info in the link preview for links sent by users
However if you want the bot to know what is on the other side of the link, It is possible. You can use a HTML content scrapping library and a Summarizing library to get a link preview. I have attached below the libraries you can use and a Reddit bot which is somehow close to what you need. The example libraries are in python but you can essentially get or make for the language you use.
python-goose is a HTML content scrapping library
python summarizing library
another python summarizing library
sample reddit bot
Telegram MessageEntity object

Send Facebook message from application

How can I send a message to the currently logged in user from inside a Flex application contained in a Facebook iFrame and using the official AS3 Library for Facebook please?
To date the Graph API is the easiest way to work with facebook.
http://code.google.com/p/fbas/
It's far from a complete implementation, but Graph is so simple it shouldn't take long to implement any features you need.
NOTE: When I've used it I ported the javascript portion of the example code on the project's main page to AS3 & ExternalInterface. It reduced external dependencies to zero (with the exception of swfobject)
Facebook does not allow you to send messages . Either way , you can post to the user's friends feed on behalf of the user , with a custom message and the the notification for the post in feed will be displayed.
Post your request to http://graph.facebook.com/PROFILE_ID/feed
Requires the publish_stream permission.
You can refer this link http://facebooksdk.blogspot.com/2011/04/facebook-album.html

Resources