DEV Community

Evan Lin
Evan Lin

Posted on • Originally published at evanlin.com on

Gemini/Firebase: Building a Tech News LINE Bot with IFTTT and LangChain

title: [Gemini/Firebase] Personal Information Flow - Building a Tech News LINE Bot with IFTTT and LangChain
published: false
date: 2024-09-10 00:00:00 UTC
tags: 
canonical_url: https://www.evanlin.com/personal-km-flow-1/
---

![PlantUML diagram](https://www.evanlin.com/images/2022/VP312i8m38RlUOgym5vW1ncemy7SPHFFiGlTq5L9MWIVtXQ5IGzU2ltovUSdbNeI7vORaF5tmPEo0AGNYsA3JJqC0vPOipSJA-x84tnW6X_8N5awVkel3DREpjPa6A0bPxSJpIxpO-QPBzWReKUKSs-D-2_sOLb8vXUFgHcMA_XsXSn8IstJxPFARbGyiYfPLgZYDzxX3G00.png)

# Recent

Recently, I set up an information flow, which I think is quite interesting:

- IFTTT grabs trending articles from HN and Hugging Face.
- Sends them to a Webhook, where LangChain crawls and summarizes them.
- Sends the summaries to a LINE Bot for personal viewing.
- Selects the ones I like and posts them directly to Twitter (currently, I can't post long-form content due to the lack of a paid API).

Code: [https://github.com/kkdai/gh-summarized-scheduler](https://github.com/kkdai/gh-summarized-scheduler)

# IFTTT Setup

![image-20240911222516788](https://www.evanlin.com/images/2022/image-20240911222516788.png)

![image-20240911222612321](https://www.evanlin.com/images/2022/image-20240911222612321.png)

# Results

![image-20240911222313402](https://www.evanlin.com/images/2022/image-20240911222313402.png)

- Includes detailed article links and summaries.
- Allows for quick decisions on whether to read further.
- The entire format is also adapted to be directly copied and pasted to Twitter (I have a paid account for long-form posts).

# Future Development:

- Ideally, it should be possible to post to Twitter with one click, but the X API is expensive (one hundred USD).
- I considered using IFTTT to post to Twitter, but there's a length limit (128 characters), so it's not usable.
- However, the Threads API seems to be able to post long-form content.
Enter fullscreen mode Exit fullscreen mode

Top comments (0)