open custom app from google assistant on smartPhone - actions-on-google

Here's the problem,
i'm developing an google assistant app where i should show a list to the user and when he press on item from the list i should open another app.
i was able to create list using the following :-
app.askWithList(app.buildRichResponse()
.addSimpleResponse('Alright')
.addSuggestions(
['Basic Card', 'List', 'Carousel', 'Suggestions']),
app.buildList('Things to learn about')
.addItems(app.buildOptionItem('MATH_AND_PRIME', ['math', 'math and prime', 'prime numbers', 'prime'])
.setTitle('Math & prime numbers')
.setDescription('42 is an abundant number because the sum of its ' +
'proper divisors 54 is greater…')
.setImage('http://example.com/math_and_prime.jpg', 'Math & prime numbers'))
.addItems(app.buildOptionItem('EGYPT', ['religion', 'egpyt', 'ancient egyptian'])
.setTitle('Ancient Egyptian religion')
.setDescription('42 gods who ruled on the fate of the dead in the ' +
'afterworld. Throughout the under…')
.setImage('http://example.com/egypt', 'Egypt')
)
.addItems(app.buildOptionItem('RECIPES', ['recipes', 'recipe', '42 recipes'])
.setTitle('42 recipes with 42 ingredients')
.setDescription('Here\'s a beautifully simple recipe that\'s full ' +
'of flavor! All you need is some ginger and…')
.setImage('http://example.com/recipe', 'Recipe')
)
);
do any one have an idea how to do it?

Google Assistant doesn't support push messages, so you need to send a push message using Fcm/Gcm from your fulfillment when the user select something. It means you need to implement push messages in your app, you need account linking and an oauth2 server. A lot of work at least at the moment.

Related

Find Origin that passed Core Web Vitals Stat?

The changelog (https://developers.google.com/web/tools/chrome-user-experience-report/bigquery/changelog)reports the origins having good Core Web Vitals, and This info is excellent! Please share if you know the below information related to good Core Web Vitals Stat.
Is changelog reporting for Desktop Or Mobile Or Tablet OR all three?
Was it for the entire Origin Or only for the homepage of Origin?
Where can I see the list of origins that passed Core Web Vitals? If not available & need to find ourself would you mind Giving the query Or Add into Crux CookBook (https://github.com/GoogleChrome/CrUX/tree/master/sql)? I tried to run myself constructing query & run, Got Quote Exceed error sounds due to account limitation.
Also answered in the CrUX discussion forum, but for anyone who found this question on SO first, I'll reshare my response.
Is changelog reporting for Desktop Or Mobile Or Tablet OR all three?
All three combined.
Was it for the entire Origin Or only for the homepage of Origin?
All BigQuery data is aggregated at the origin level, so these compliance rates apply to the entire origin.
Where can I see the list of origins that passed Core Web Vitals? If not available & need to find ourself would you mind Giving the query Or Add into Crux CookBook (https://github.com/GoogleChrome/CrUX/tree/master/sql)? I tried to run myself constructing query & run, Got Quote Exceed error sounds due to account limitation.
https://github.com/GoogleChrome/CrUX/blob/main/sql/core-web-vitals-compliance-rates.sql is a good starting point. Here's a modification of that query to get the list of origins that pass the CWV assessment: (793 MB processed)
CREATE TEMP FUNCTION IS_GOOD (good FLOAT64, needs_improvement FLOAT64, poor FLOAT64) RETURNS BOOL AS (
good / (good + needs_improvement + poor) >= 0.75
);
CREATE TEMP FUNCTION IS_NON_ZERO (good FLOAT64, needs_improvement FLOAT64, poor FLOAT64) RETURNS BOOL AS (
good + needs_improvement + poor > 0
);
SELECT DISTINCT
origin
FROM
`chrome-ux-report.materialized.metrics_summary`
WHERE
date = '2021-03-01' AND
IS_GOOD(fast_lcp, avg_lcp, slow_lcp) AND
IS_GOOD(fast_fid, avg_fid, slow_fid) AND
IS_GOOD(small_cls, medium_cls, large_cls) AND
IS_NON_ZERO(fast_lcp, avg_lcp, slow_lcp) AND
IS_NON_ZERO(fast_fid, avg_fid, slow_fid) AND
IS_NON_ZERO(small_cls, medium_cls, large_cls)

RASA: Automatic generation of stories

I want to know whether it is possible to automatically generate stories to train the chatbot using RASA.
I have built my training data using the online training session to generate the stories and I found it very impractical. I would like to know whether there is some automatic way to do the story conversion of any conversation.
You can use interactive learning to create training data while speaking to the bot. See the docs here for more information on how to use interactive learning.
This is probably too late of a response but it is for the rest of the community who might still need an answer to this. A few months ago, I personally experienced that it would take too long to conduct interactive learning to train your RASA bot (especially when you have hundreds of intents and actions).
What I did was:
1) Compile all my named intents and actions(utter_) into a .csv file with following column headers : [subject] | [intent_name] | [utter_name]
2) Parse the intent name along with its respective action name in the same row into Markdown(.md) format while adding the respective strings to follow the formatting of the stories.md file
Package this into a function and call in a for loop:
subcell = "## " + column[0] + "\n" # [subject] header for stories
subcell += "* " + column[1] + "\n" + " - " + column[2] + "\n" + "\n" # [intent_name] + [utter_name]
3) The generated stories.md output will have all the direct intent-action pairings for your simple conversation flows. Likewise, you can apply this concept for generating domain.yml
Hope this helps!

Swift using Modulo 97 for IBAN Converter

Hey,
I want to build a IBAN converter tool for IPhones. What I mean by that is that the User has 2 textfield. One for the bank code and one for the account number.
To get the right IBAN I have to put the "Checksum" e.g 700901001234567890131400 and use the modulos 97 to get the "check digit"
in this example it is 08.
In php it looks like this:
$mod97 = bcmod($checkSum, "97");
How can I achieve the same result in Swift?
PS:
Account Number: 1234567890
Bank Account :70090100
These are not real just to mention it!

how to write mathematical equations and symbols in IBM Conversation

I have created a chat bot using Conversation Service of IBM Watson but I am not able to write mathematical equations and symbols in the intents, entities and dialog. Can anyone help me with this?
Mathematical symbols such as +,-,* or / are just characters and can be used in intent/entities examples. So you could create an intent #add with +, plus, add as an examples.
Then you can use predefined #sys-number entity to detect numbers (just turn it on in entities, system entities tab). You would then create a dialog node with a condition #add && #sys-number.length == 2 - to be sure there are two numbers in the user input - and in the Watson says, you could write expression such as:
<? #sys-number[0].numeric_value + #sys-number[1].numeric_value ?>
to get the result.

Sending automatic e- mail on GOOGLE Spreadsheets

Good Morning,
I am developing a lending spreadsheet books ...
Like it when a column was written " LATE " ( let's assume it is cell D2 ) , an email was sent ( we assume that the registered e- mail was in cell G2 ) automatic for the user who took the borrowed book, saying that the delivery date has passed.
It is possible? Although not natively ...
If possible with the code
Grateful.
you can use this link and you can create otherwise if you want i can do for u but you have to pay :p
https://developers.google.com/apps-script/articles/sending_emails
https://sites.google.com/site/scriptsexamples/available-web-apps/add-reminders-to-spreadsheet