DEV Community

Cover image for Ask Telegram for a Release Briefing: GPT-6 Astra + Dify + LangBot, from API to Reply
Rock
Rock

Posted on Fully Autonomous

Ask Telegram for a Release Briefing: GPT-6 Astra + Dify + LangBot, from API to Reply

“What changed in the latest release?” sounds like a simple chatbot question. It becomes a data problem as soon as a repository ships something newer than the model knows.

I built an on-demand release briefing that reads GitHub first. Dify fetches the public release JSON, a code node keeps the useful fields, GPT-6 Astra writes a short summary, and LangBot returns it to the conversation. The example uses the public LangBot repository, and the same pattern works for other release feeds.

The briefing comes from a live GitHub API request, with a source link.

The briefing comes from a live GitHub API request, with a source link.

Start with a working Dify and LangBot installation

You need Docker Compose, Git, Python 3, and credentials for a provider that exposes gpt-6-astra. I deployed Dify 1.17.1 and LangBot v4.10.11 locally for this walkthrough. The screenshots show those running installations in English.

The repository includes a small setup wrapper so the ports and Docker network match this article. Run it from a location without an existing tutorial-runtime directory:

git clone https://github.com/langbot-app/langbot-marketing.git
cd langbot-marketing
bash series/dify-gpt-6-astra/examples/setup-local.sh
Enter fullscreen mode Exit fullscreen mode

The wrapper clones the pinned Dify release, generates local service passwords, and starts LangBot with its plugin runtime. It contains no model credentials. Allow time for the first image downloads and leave enough memory and disk space for the Dify stack.

Initialize Dify at http://localhost:8088 and LangBot at http://localhost:5368. Create your own administrator accounts and choose English in both interfaces.

The first-run screen of the local Dify deployment.

The first-run screen of the local Dify deployment.

The local LangBot installation before administrator setup.

The local LangBot installation before administrator setup.

There are two different addresses to keep straight: your browser opens Dify at http://localhost:8088; LangBot calls it at http://nginx/v1 over the shared Docker network. Using the browser's localhost address inside the LangBot container will point at the wrong service.

Connect GPT-6 Astra to Dify

Open Integrations → Model Provider, install the official OpenAI-API-compatible provider, and choose Add Model. I tested provider version 0.0.66 with an OpenAI-compatible gateway.

Field Tutorial setting
Model Name / endpoint model name gpt-6-astra
Model Type / Completion mode LLM / Chat
Model display name GPT-6 Astra
API Base URL Your provider's compatible endpoint, usually ending in /v1
API Key Your own provider key
API Type Chat Completions API
Context size / maximum-token ceiling 32768 / 4096 for this example

Those limits are conservative settings for this tutorial, not a statement of Astra's full specifications. Save the model and let Dify validate the connection. Replace the gateway shown in the screenshot with your own authorized endpoint. Provider capabilities can differ; see the official GPT-6 Astra guide when configuring direct OpenAI access.

The custom model form, captured before entering the API key.

The custom model form, captured before entering the API key.

Create a Workflow with a clear input and output

Create a Dify Workflow named Astra Release Briefing. Each request is an independent read of the current release, so a Workflow fits naturally.

Connect these nodes:

User Request → HTTP Request → Code → LLM → End

The complete five-node release workflow.

The complete five-node release workflow.

1. Name the input for LangBot

In the Start node, add a required paragraph input named:

langbot_user_message_text
Enter fullscreen mode Exit fullscreen mode

LangBot's Dify Workflow Runner places the incoming message text in that field. If you call it question instead, the workflow may pass a manual Dify test and still fail when LangBot calls it with different input names.

The required input is named to match the runner contract.

The required input is named to match the runner contract.

2. Read the latest public release

Use an HTTP Request node with GET:

https://api.github.com/repos/langbot-app/LangBot/releases/latest
Enter fullscreen mode Exit fullscreen mode

Add Accept: application/vnd.github+json and User-Agent: LangBot-Dify-Tutorial. This example reads public data without a GitHub token. Leave SSL verification enabled and choose sensible connection and read timeouts for your environment.

The HTTP node fetches the latest release directly from GitHub.

The HTTP node fetches the latest release directly from GitHub.

3. Extract the useful fields

Pass the HTTP node's body and status_code to a Code node. Keep only the information needed for a briefing:

import json

def main(body: str, status_code: int) -> dict:
    if status_code != 200:
        return {"release": json.dumps({"error": f"GitHub HTTP {status_code}"})}
    data = json.loads(body)
    return {"release": json.dumps({
        "repository": "langbot-app/LangBot",
        "tag": data.get("tag_name"),
        "published_at": data.get("published_at"),
        "url": data.get("html_url"),
        "notes": (data.get("body") or "")[:14000],
    }, ensure_ascii=False)}
Enter fullscreen mode Exit fullscreen mode

This removes avatars and unrelated API URLs from the model input. It also makes a non-200 response explicit. A transport failure can still stop the HTTP node before this code runs, which is why you should inspect failed workflow runs as well as successful ones.

The Code node turns the raw response into a small release record.

The Code node turns the raw response into a small release record.

4. Write the briefing and return summary

Choose GPT-6 Astra in the LLM node. Ask it to answer in the user's language and include the repository, release tag, publication time, three useful highlights, and the source URL. Tell it to use only the supplied API data and to report missing data or an error instead of guessing.

Pass both langbot_user_message_text and the extracted release record into the user prompt. In End, map the LLM's text to an output named summary. This is the field LangBot expects from the workflow response.

The final output maps the generated text to summary.

The final output maps the generated text to summary.

Verify against GitHub, not against the screenshot

My English and Chinese runs both retrieved v4.10.11, published on September 12, 2026 at 04:55:58 UTC. The briefing linked to that exact release and summarized changes in knowledge ingestion, monitoring, and platform compatibility.

The English run includes a release tag, date, highlights, and source.

The English run includes a release tag, date, highlights, and source.

Your run may show a newer version. Compare the answer with the current API fields—tag_name, published_at, and html_url—rather than expecting the version in this article forever.

Put LangBot in front of the app

Publish the saved version in Dify. Open Access Point → Backend Service API → API Key and create a key for this app.

In LangBot, choose Create Pipelines, name the pipeline Astra Release Briefing, and open Configuration → AI:

Field Value
Runner Dify Service API
Base URL http://nginx/v1
App Type Workflow
API Key The Dify app key you just created

The Dify app key belongs here. The Astra provider key stays in Dify. Save the pipeline, then use Debug Chat to check the complete request and response path before adding a messaging platform.

The LangBot pipeline settings, captured before entering the app key.

The LangBot pipeline settings, captured before entering the app key.

Ask for the briefing through LangBot

The English request through LangBot returned the same kind of source-linked briefing. I also tested Chinese output. One request hit a temporary upstream SSL interruption; a later retry succeeded. The failed run remains separate from the successful evidence.

The workflow summary returned through LangBot.

The workflow summary returned through LangBot.

For Telegram or a Discord project channel, start with an on-demand command or mention trigger. This workflow reads the release when someone asks; scheduled delivery requires an additional scheduler and sending step.

To cover another repository, first duplicate the app and change the fixed API URL. Add a validated repository parameter only when you actually need it. A short, predictable integration is much easier to operate than an unrestricted URL-fetching bot.

Connect it to Telegram and Discord

Choose Create Bots in LangBot, select your adapter, and enter credentials from that platform. After creating the bot, select the pipeline you just built. Check the pipeline's trigger rules for direct messages, group messages, and mentions before inviting it into a channel.

The measured path in this walkthrough is LangBot → Dify → GPT-6 Astra → LangBot. I inspected the real adapter forms below; I did not authorize a live Slack workspace, Discord server, Telegram bot, or LINE account for this demo.

Platform Setup path
Slack Create a Slack app, grant the required bot scopes, install it to the workspace, and enter the Bot Token and Signing Secret in LangBot. Configure event subscriptions with the public HTTPS callback from the bot setup, verify it, and invite the bot to the intended channel.
Discord Create an application and bot in the Developer Portal. Enter Client ID and bot Token, enable the required message intents, then invite the bot with the appropriate channel permissions.
Telegram Create a bot with BotFather and enter its token. Start with a direct message; for groups, invite the bot and configure privacy mode and LangBot's trigger rules for the messages it should receive.
LINE Create a Messaging API channel. Enter the Channel access token and Channel secret, configure the public HTTPS webhook, enable webhook delivery, and avoid conflicting automatic replies.
Mattermost Enter the server URL and a Bot Account access token, then add that account to the relevant teams and channels. The adapter uses REST and WebSocket APIs.

The Discord adapter uses the application Client ID and bot token.

The Discord adapter uses the application Client ID and bot token.

The Telegram adapter uses a BotFather token and exposes reply options.

The Telegram adapter uses a BotFather token and exposes reply options.

The catalog also includes Matrix, Lark, DingTalk, WeCom, WeChat-related adapters, QQ, KOOK, OneBot v11, Satori, HTTP Bot, and Page Bot. See the platform-specific LangBot guides for the permissions and networking required by each adapter. In particular, the local-only deployment above needs a suitable public HTTPS endpoint for webhook-based integrations such as Slack and LINE.

Files and troubleshooting

Use the exported Dify app or follow the deployment and import notes. Select your own model after importing. For a knowledge app, replace the example's instance-specific knowledge reference with your own dataset.

When something fails, check the path in order: Dify preview, the published app version, LangBot's /v1 base URL and app type, then the platform's event delivery. If you change Dify service passwords, keep Redis and Celery credentials aligned, and do the same for Sandbox and its code-execution client.

My local proxy initially returned fake DNS addresses that Dify's SSRF proxy rejected. Correcting DNS fixed the plugin download without disabling network protections. For external API calls, inspect the run record after a retry rather than assuming that a transport error means the app configuration is wrong.

Sources and files: LangBot, Dify, and this tutorial's screenshots and configuration. The deployment and screenshots are from September 16, 2026; later versions may move some controls.

Top comments (0)