LoginSignup
1
1

PartyRockでClaudeのサンタクロースAIアシスタントを作ってみた

Last updated at Posted at 2023-12-19

はじめに

AWSのアカウント不要で無料でClaudeモデルなどを使ってAIアプリケーションが作成&シェアできる「Amazon PartyRock」を使ってみました!

本当にすぐに使えて楽しかったのでみなさんもぜひ作ってみてはいかがでしょうか?
今回は「サンタクロースになるためのアシスタント🎅」をPartyRockで作ってみました。

デモはこちらです。

スクリーンショット 2023-12-17 203814.png

Amazon ParyRockの始め方

スクリーンショット 2023-12-17 195757.png
まずPartyRockのサイトにアクセスしましょう。

右上の「Sign in」からSNS認証でログインします。

スクリーンショット 2023-12-17 195821.png
すると、ユーザー名と地名を入力して「Submit」を押します。
DJのターンテーブルみたいでとてもかわいいです。

もっとくわしい導入方法はこちらも参考にしてみてください↓

プロンプトからアプリケーションを作ってみた

今回参考にしたのはClaude用以下のプロンプトです。

User prompt: 
	

Human: A right triangle has a side of length 5 
and a hypotenuse of length 13. 
What is the length of the other side? 

Assistant: Can I think step-by-step?

Human: Yes, please do.

Assistant:

これをサンタクロースアシスタントバージョンに直してみました。
現在PartyRockは英語しか対応していないようなので、DeepLで翻訳して英語でプロンプトを作りました。

User prompt:


Human: You are Santa Claus. 
How can I deliver presents to my children without telling them? 

Assistant: Can I think step-by-step?

Human: Yes, please do.

Assistant: 


プロンプトエンジニアリングについて詳しくはこちら↓

さて、プロンプトが決まったので入力してみましょう。

GettingStartedに進みます。

スクリーンショット 2023-12-17 205731.png
下の方に進むとABCと選べます。

スクリーンショット 2023-12-17 205738.png

Aは「Start with a prompt」とありプロンプトだけでアプリケーションを作ることができます。
今回はこのAからAIアプリケーションを作ってみましょう。

「Start building」に進みます。

スクリーンショット 2023-12-17 203234.png

App builderに先ほど作ったプロンプトを入力して「Gererate app」を押します。
これでアプリケーションが完成です!!!🎅🎁

サンタアシスタントAIが一瞬で完成🎅

スクリーンショット 2023-12-17 203814.png

サンタアシスタントAIのデモはこちらです。

本当にプロンプトだけでアプリケーションが完成してしまいました。驚きです。

一番下のLLMというバッジがついているウィンドウの右端の設定アイコンを押してみると、右サイドバーが出現します。

このサイドバーでLLMのモデルを選ぶことができます。デフォルトで「Claude」が選択されています。

早速試してみた

Inputは「Child Names Input」と「Gift Ideas Input」の2つが生成されました。

試しにこちらに「Naomi」「Large stuffed bear(大きなくまのぬいぐるみ)」と入力してみました。結果は以下の通りです。

 Here is some step-by-step advice for how Naomi can secretly deliver a large stuffed bear gift to their children without the children finding out:

1. Buy the stuffed bear several weeks or months in advance and hide it well out of sight of the children. A closet, spare room, trunk of the car, or at a friend or relative's house are good hiding places.

2. On Christmas Eve after the children go to bed, quietly retrieve the stuffed bear from its hiding place and place it under the tree or in the spot you want to surprise them. 

3. To prevent the children from catching you in the act, wait until they are in a deep sleep before sneaking the stuffed bear into place. Listen at their bedroom doors to ensure they are asleep. 

4. Place the stuffed bear far enough away from the tree and other gifts that it looks like it was delivered by Santa. You don't want it to look like it was already there and they just didn't notice it before.

5. In the morning, make a big excited reaction when the children discover the stuffed bear to add to the surprise and magic. Act just as thrilled as them, asking "how did he know you wanted that?"

6. When asked how Santa got such a large gift in the house without being seen, say "Oh, Santa has his ways!" Wink and allude to his magic without giving away your role.

7. Have a great story ready for how the bear got its name or where it came from to really sell the Santa magic.

8. Keep it a secret that you were Santa this year! Let them continue believing in the magic. Next year they will be watching for you, so you have to get even more creative.

日本語バージョン

 ここでは、ナオミが子供たちにバレずにこっそり大きなクマのぬいぐるみをプレゼントする方法について、ステップ・バイ・ステップでアドバイスする:

1. クマのぬいぐるみを数週間から数ヶ月前に購入し、子供たちの目の届かないところに隠す。クローゼット、空き部屋、車のトランク、友人や親戚の家などが良い隠し場所となる。

2. クリスマスイブの夜、子供たちが寝静まった後、静かにクマのぬいぐるみを隠し場所から取り出し、ツリーの下か、子供たちを驚かせたい場所に置きます。

3. 子供たちにバレないように、子供たちが深い眠りにつくのを待ってから、クマのぬいぐるみをこっそり置く。寝室のドアに耳を傾け、彼らが眠っていることを確認する。

4. クマのぬいぐるみは、ツリーや他のプレゼントから十分離れた場所に置き、サンタが届けたように見せる。クマのぬいぐるみがすでにそこにあって、サンタがそれに気づかなかっただけ、とは思わせたくない。

5. 朝、子供たちがクマのぬいぐるみを発見したときに大きなリアクションをして、驚きと魔法を加えます。子どもたちと同じように、"どうしてあなたがそれを欲しがっていることがわかったの?"と尋ねるなど、わくわくするように振る舞いましょう。

6. サンタはどうやってこんな大きなプレゼントを人目をはばかることなく家の中に入れたのかと聞かれたら、"ああ、サンタにはサンタのやり方があるんだ!"と言う。ウインクをして、自分の役割を明かすことなく、サンタの魔法を暗示する。

7. クマの名前の由来やどこから来たのか、サンタマジックを売り込むための素晴らしいストーリーを用意しておく。

8. あなたが今年のサンタであることは秘密にしておきましょう!子どもたちに、サンタを信じ続けてもらいましょう。

Child Names Inputが子どもの名前じゃなくて贈る側の名前になっているのでちょっと意味が違ってしまいましたが、なんだかかわいいので許します。

まとめ

Amazon PartyRockはお手軽にClaudeモデルのアプリケーションを作って楽しめるサービスでした!

ぜひサンタアシスタントAIで私も子どもたちにサンタマジックをかけたいものですね🎅🎁

ここまで読んでいただいてありがとうございました!

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1