Alexa スクレイパー

scraper.alexa actorは、関連するプロンプト、引用、メディアアセットを含むAlexaの応答を返すため、モデルがさまざまな市場でどのように回答するかをベンチマークできます。

リクエストの例

curl 'https://api.scrapeless.com/api/v2/scraper/request' \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: {you_api_key}' \
  --data '{
    "actor": "scraper.alexa",
    "input": {
      "prompt": "Recommended attractions in New York",
      "country": "US"
    },
    "webhook": {
      "url": "http://www.youwebhook.com"
    }
  }'

ボディパラメータ

パラメータ型必須説明
promptstringはいAlexaに送信するプロンプト。
countrystringはい国または地域コード。

レスポンスフィールド

パラメータ型説明
user_textstringユーザーが送信した元のテキスト。
md_textstringMarkdown形式のAlexaからの回答。
raw_textstringプレーンテキスト形式のAlexaからの回答。
completedbool回答の生成が完了しているかどうか。
answer_fragment_uristring回答フラグメントのURI。
answer_revisionint回答のリビジョン番号。
dialog_request_idstringダイアログリクエストの識別子。
endpoint_idstring応答したエンドポイント/デバイスの識別子。
fragment_countintレスポンスフラグメントの数。
conversationobject会話のコンテキスト。
conversation.idstring会話識別子。
directivesarrayやり取り中に発行された処理ディレクティブ。
directives.namestringディレクティブ名、例: RequestProcessingStarted。
directives.namespacestringディレクティブ名前空間、例: InteractionModel。
directives.message_idstringディレクティブメッセージの固有識別子。
directives.dialog_request_idstringディレクティブに関連付けられたダイアログリクエストID。
directives.fragment_countintディレクティブのフラグメント数。
referencesarray回答内で参照されている引用。
references.idstring引用識別子、例: cite_NWXekzs。
references.titlestring参照されたソースのタイトル。
references.urlstring参照されたソースのURL。
sourcesarray回答を裏付けるソースのリンク。
sources.textstringソースの表示テキスト(例:サイト名)。
sources.urlstringソースのURL。
sources.typestringソースタイプ、例: OpenURL。
sources.fragment_uristringソースフラグメントのURI。
suggestionsarray提案されるフォローアッププロンプト。
suggestions.textstring提案の表示テキスト。
suggestions.messagestring提案が選択されたときに送信されるメッセージ。
suggestions.typestring提案タイプ、例: TextMessage。
suggestions.fragment_uristring提案フラグメントのURI。
productsarrayAlexaが返した製品情報(該当しない場合は空)。
products.product_idstring製品識別子(例:Amazon ASIN)。
products.citation_idstring製品と回答を関連付ける引用識別子。
products.titlestring製品タイトル。
products.image_urlstring製品画像のURL。
products.urlstring製品ページのURL。
products.pricestring表示価格、例: $989.95。
products.deliverystring配送情報、例: Delivery by Tuesday, July 7。
products.detailsarray詳細ラインのリスト(タイトル、価格、配送など)。
products.fragment_uristring製品フラグメントのURI。
products.purposestring製品エントリの目的、例: INFORMATION。