How-To Series · 5: Everywhere You Are

LINE Messaging

Run Hermes as a LINE bot through the official LINE Messaging API.

After this videoYou can reach your Hermes agent on the dominant messenger in Japan, Taiwan, and Thailand

LINE runs Hermes as a bot through the official Messaging API. You create a Messaging API channel, copy the channel secret, and issue a long-lived access token. LINE delivers webhooks over public HTTPS, so you expose port 8646 through a tunnel and point the webhook at the /line/webhook path. You set LINE_CHANNEL_ACCESS_TOKEN, LINE_CHANNEL_SECRET, an allowlist, and LINE_PUBLIC_URL for media. Outbound text uses the free reply token first and falls back to the metered Push API only when the token expires.

About these resources. This episode explains how to set up LINE in Hermes. The Sources block names the Hermes docs page that backs every claim.

Sources · What this video distills

1 docs page · every command below traces to one of them
Primary guide
LINE
Read ↗

Commands shown · Copy and paste

each shows the source doc it came from
Expose the LINE webhook portfrom source ↗
cloudflared tunnel --url http://localhost:8646
Configure LINE in Hermesfrom source ↗
hermes gateway setup
Run the gatewayfrom source ↗
hermes gateway

Going deeper · Related Hermes docs

further reading · not sources of facts shown above

Next in the series · Episodes that build on this