Author: Onglai

  • 岁月静好

    适意行,安心坐,渴时饮饥时餐醉时歌,困来时就向莎茵卧。—关汉卿《四块玉·闲适》

  • What I did today

    Meditation: 30 min of napping on the floor
    Reading:The impact of artificial intelligence on modern society
    Cooking: Scrambled tofu, mushrooms, onion, carrot, broccoli
    Salmon steak, steamed eggs with tofu
    Exercise: Squats, deadlift, benchpress, military press, 40 min run in Zone 2

  • 自由了(一半)

    凌晨两点半。今天是离职后的第一天。辞去了做了快四分之一个世纪的工作,是何感想?

    悄悄的我走了,
    正如我悄悄的来;
    挥一挥衣袖,
    不带走一片云彩。

    — 徐志摩《再别康桥》

    最常被问及的有:接下来去哪?退休后要干什么?什么都不干不会闷 吗?

    而今何事最相宜,宜醉宜游宜睡。— 辛弃疾《西江月·示儿曹以家事付之》

  • DialogFlow CX agent and Google Sheets

    We will create a conversation agent to answer users’ queries using information maintained in a Google Sheet.

    Sample use case: User would like to know the current availability of a facility.

    Steps:

    1. Create agent to extract relevant information such as facility name from the conversation.
    2. Create a Google sheet to store information on current availability of each facility. Ensure the DialogFlow CX agent has read access to this sheet.
    3. Write a function that the agent will call via a webhook. The function will reside in Google Cloud Run and its purpose is to take the facility name extracted from the conversation and search for its availability in the Google sheet. Once found, the answer will be returned to the agent which will display the answer to the user.

    Leave a comment if you need more information on specific steps.

  • Namo tassa bhagavato arahato sammasambuddhasa

    礼敬世尊,阿罗汉,正等正觉者

    A video I found useful in explaining the meaning of this phrase: