How to improve google dialogflow response without using training phrases? - chatbot

I am creating a chatbot using Google DialogFlow, which includes several pages. These pages are uploaded as pdf file using Knowledge (Beta) feature in Google DialogFlow. During the testing of chatbot response, it is observed that sometimes the chatbot response is inaccurate. Here is an example to describe this problem
Question 1 (format-1): when inventory structure should be planned?
Reply: You can plan your inventory structure before creating inventory in Ad Manager to get the most out of your ad space on web or app. #inventory
Question 1 (format-2): should I plan inventory structure after or before creating inventory in ad Manager?
Reply: You can plan your inventory structure before creating inventory in Ad Manager to get the most out of your ad space on web or app. #inventory
Question 1 (format-3): should I plan inventory structure after creating inventory in ad Manager?
Reply: Your inventory is a combination of ad units, placements, and key-values that allows you to target horizontally across your content. The examples below show how you might use ad units, key-values, and system-defined criteria to meet inventory requirements.
As show above, the response from the chatbot is correct for the Question 1 (format-1) and Question 1 (format-2). However, the chatbot's response is incorrect for the Question 1 (format-3).
I do not want to add the training phrases provided in the Intent feature available within Google Dialogflow to improve chatbot accuracy as this would require training for each question. Is there a way to improve chatbot accuracy without using trarining phrases?

Related

Building a custom chatbot with GPT-3

I want to build a chatbot by training on my custom data. The procedure is provided by OpenAI at https://platform.openai.com/docs/guides/fine-tuning. I would like the bot to recommend my Facebook page at the end( Which is about movies) after having some meaningful conversation about movies with a customer. I want to leverage the power of Davinci model, as it is the most powerful.
My only question is, is there a chance I can include all the important information in the prompt, like features of my page, my website, etc, and then train it in the custom model(so I dont have to rewrite the whole prompt again for each user)? Because if I repeat the whole prompt again with all the information, my tokens will be consumed very quickly. Thank you.

Business Verification for chatbot [duplicate]

This question already has answers here:
Facebook Messenger Chatbot for personal fan page
(2 answers)
Closed 3 years ago.
I created a chatbot using Dialogflow, I submitted it for review and the problem is: I dont have a business (just a page in facebook) for the "Business Verification" so no:
Business license (preferred)
Certificate of formation
Articles of incorporation document
Business utility or phone bill
Please, what is the solution for my case ?
Thank you!
As facebook is fighting to gain their image back after being involved in some major data breaches recently, they are asking Chatbot developers to connect their Bots to real businesses.
The business verification process will take time from weeks to months, requiring appropriated documents proving the page business is real!
I see, therefore, there's no chance to publish your bot now, or even in the future, without having any serious business for the page!
Thankfully, for people like you and me they are currently rolling out "Individual Verification":
If you submit your app for review and you are asked to complete business verification, but you don't own or run a business, you may be given the option to complete individual verification instead. By completing individual verification, you can gain full or limited access to the products listed below. [...]

Microsoft Teams : REST APIs

I'm interested in getting data (metadata and content of files) out of Microsoft Teams into my application using REST APIs. I have looked at Office 365 APIs and Graph APIs but, I could not find supporting documentation for Microsoft Teams.
Teams API is now added to beta endpoint in Microsoft Graph. In documentation, you can find it together with Groups. Post, Channel and Chat Thread are available.
For example, documentation for "channel" resource is here:
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/channel
Microsoft Teams REST API is now included into MS Graph API
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-1.0
At the time of writing this answer there are not too many APIs around Teams. However more are being added and they are in Beta (sending messages, adding apps to team, uploading team image, and more).
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-beta
It is not recommended to use Beta APIs in production environment as they might change.
It is also worth of mentioning that Teams are actually Office365 Groups.
Please take a look at Graph API
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-1.0
https://learn.microsoft.com/en-us/graph/api/resources/team?view=graph-rest-beta
Expand "Teamwork" at left side, you can get all Teams related API
We do not have Teams APIs available at this time. Our extensibility options are limited to experiences within the Teams application.
The Microsoft Graph API is constantly changing and we're currently using the following to monitor/interact with our Microsoft Teams application:
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview
It gives access to the following (at the time of writing this):
We also monitor the general usage via the reports section in the Graph API:
This gives access to:
Device Usage:
Get details about Microsoft Teams device usage by user.
Get the number of daily unique users by device type.
Get the number of unique users by device type over the selected time period.
User Usage:
Get details about Microsoft Teams user activity by user.
Get the number of Microsoft Teams activities by activity type. The activities are performed by Microsoft Teams licensed users.
Get the number of users by activity type. The activity types are number of teams chat messages, private chat messages, calls, or meetings.
https://learn.microsoft.com/en-us/graph/api/resources/microsoft-teams-device-usage-reports?view=graph-rest-1.0

Transition from yahoo groups to google groups

A yahoo group I'm in is preparing for the possibility of yahoo's demise.
They are investigating the transition to google groups.
We do not want to give up either backlog or attribution of the 13,000 some posts.
Is there a way to transfer information, including users of individual posts from yahoo groups to google groups.
Alternately, is it possible from Yahoo groups to something like phpBB.
I am posting this in both Stack Exchange and in Google products forum.
While the question is an old one, others may be interested to know that using the Google Groups Migration API it is possible to upload the users and the data from Yahoo Groups.
Sequence:
Download your Yahoo Group data using Personal Groupware http://www.personalgroupware.com
Export the the data into your chosen database (e.g. MySql)
Upload the data using the Google Groups Migration API
https://developers.google.com/admin-sdk/groups-migration/v1/get-start/getting-started
You will not be able to transfer your group to Google.
The upload of group data follows this pattern:
Upload Users
Upload Subjects
Upload Replies
You will be stuck at 1) as you are unable to create the list of users on Google. You do not have write access to the Google user database.
For phpbb this will definitely be possible as you have full control of the database.

Ads api: request only those creatives that are currently used

When using Facebook's Ads API, I'd like to request all creatives for an account that are currently being used by an adgroup. I.e. where the count_current_adgroups value is > 0. I can pull all creatives for the account with:
">https://graph.facebook.com/adcreatives/?ids=act_123456789&access_token=
How do you limit this request to only return adcreatives that are being used by an adgroup?
Thanks.
John - This functionality doesn't currently exist. Your best bet is to load all the active adgroups in your account like this:
https://graph.facebook.com/adaccount/adgroups
Inside of each adgroup, it will list the adcreative that is currently associated with that adgroup. Collect all of these adcreative IDs together, and deduplicate them, then load them all using this syntax:
https://graph.facebook.com/adaccount/adcreatives?ids=1,2,3,4
This should give you the functionality you need, although it will take two calls to the Facebook Ads API to compute what you want.