Alexa Scraper

scraper.alexa アクターは、関連プロンプト、引用情報、メディアアセットを付加した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_textstringAlexaからのMarkdown形式の回答。
raw_textstringAlexaからのプレーンテキスト形式の回答。
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)。