Skip to content

Add richMenuAliasId Support and Improve Parameter Descriptions in createRichMenu Tool #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 41 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
aae7ae3
create six-splited richmenu
4geru Jun 7, 2025
14f2118
add templates
4geru Jun 8, 2025
0f25ba1
create rich-menu folder
4geru Jun 8, 2025
6744607
separate the generateRichMenuImage function
4geru Jun 8, 2025
4f27622
add example images
4geru Jun 8, 2025
b281485
Merge remote-tracking branch 'origin/main' into 4geru/test-rich-menu
4geru Jun 8, 2025
d0229a4
refactor some
4geru Jun 8, 2025
6eb6d10
add h3 tag on templete 04
4geru Jun 8, 2025
417e9d7
change return messave
4geru Jun 8, 2025
34e8566
add create richmenu
4geru Jun 10, 2025
cb128ab
add create rich menu command
4geru Jun 10, 2025
3f81982
Merge remote-tracking branch 'origin/main' into 4geru/generate-rich-menu
4geru Jun 10, 2025
15bfb77
update the create rich menu
4geru Jun 10, 2025
3e3ae9e
change the image size
4geru Jun 10, 2025
1f2f63e
create the rich menu
4geru Jun 14, 2025
9a97695
refactor the code
4geru Jun 14, 2025
a1749ce
change the templetes
4geru Jun 14, 2025
0a39c3c
change TempleteNo and height
4geru Jun 14, 2025
b4f256b
change templete actions area
4geru Jun 14, 2025
fac005c
refactor the codes
4geru Jun 14, 2025
d709b29
use const variable
4geru Jun 14, 2025
760c059
rename the filename
4geru Jun 14, 2025
280a98c
add the areas and some
4geru Jun 14, 2025
73416bf
debug
4geru Jun 14, 2025
6237d7e
update the templetes
4geru Jun 14, 2025
28ba035
Merge branch 'main' into 4geru/generate-rich-menu
4geru Jun 15, 2025
63ffcc6
Merge remote-tracking branch 'fork/4geru/generate-rich-menu' into 4ge…
4geru Jun 15, 2025
36f68fd
self review
4geru Jun 15, 2025
9c6171c
fix the ci
4geru Jun 15, 2025
019ec7c
Merge remote-tracking branch 'origin/main' into 4geru/generate-rich-menu
4geru Jun 19, 2025
0b6bd3d
use puppeteer
4geru Jun 19, 2025
e266dec
reply successful message
4geru Jun 19, 2025
09eeace
add rich menu alias
4geru Jun 23, 2025
06ca6da
update the createRichMenus from review comments
4geru Jul 3, 2025
2529edd
remove the example images
4geru Jul 3, 2025
3e82d4c
add the readme.md
4geru Jul 3, 2025
6c7335c
fix the lint
4geru Jul 3, 2025
180699e
add richmenu-templates
4geru Jul 3, 2025
d6752a5
fix typo
4geru Jul 3, 2025
7b0416b
rename the file names
4geru Jul 3, 2025
61d9b34
change workable on Docker
4geru Jul 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/package.json /app/package.json
COPY --from=builder /app/package-lock.json /app/package-lock.json
COPY --from=builder /app/richmenu-templates /app/richmenu-templates

ENV NODE_ENV=production

Expand All @@ -31,6 +32,10 @@ RUN chown -R appuser:appgroup /app
# Install *only* the production dependencies
RUN npm ci --ignore-scripts --omit-dev

RUN apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont

ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

# Now, switch to running as our non-root user for the actual app process
USER appuser

Expand Down
6 changes: 6 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ LINE公式アカウントとAI Agentを接続するために、LINE Messaging AP
- デフォルトのリッチメニューを解除する。
- **入力:**
- なし
11. **create_rich_menu**
- 指定したアクションに基づいてリッチメニューを作成します。アクションに基づいてリッチメニュー画像を生成してアップロードします。このリッチメニューはデフォルトのリッチメニューとして登録されます。
- **入力:**
- `chatBarText` (string): チャットバーに表示されるテキストで、作成するリッチメニューの名前としても使用されます。
- `actions` (array<messagingApi.Action>[1-6]): リッチメニューのためのアクション配列。1〜6個を受け取ります。各アクションはリッチメニューのボタンの動作を定義します。
- `richMenuAliasId` (string?): リッチメニューのエイリアス。`richmenuswitch` アクションタイプを使用して別のリッチメニューから切り替えられるようにリッチメニューを作成する場合に必須です。エイリアスは対象リッチメニューの一意な識別子として機能します。

## インストール (npxを使用)

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
- Cancel the default rich menu.
- **Inputs:**
- None
11. **create_rich_menu**
- Create a rich menu based on the given actions. Generate and upload a rich menu image based on the given actions. This rich menu will be registered as the default rich menu.
- **Inputs:**
- `chatBarText` (string): Text displayed in the chat bar and used as the name of the rich menu to create.
- `actions` (array<messagingApi.Action>[1-6]): The actions array for the rich menu. Accepts 1-6 items. Each action defines a button's behavior in the rich menu layout.
- `richMenuAliasId` (string?): The alias of the rich menu. This is required when creating a rich menu that can be switched to from another rich menu using the `richmenuswitch` action type. The alias serves as a unique identifier for the target rich menu.

## Installation (Using npx)

Expand Down
Loading