【发布时间】:2021-07-07 13:23:47
【问题描述】:
我有一个 YML 文件:
{language: en, pipeline: null, policies: null}
version: '2.0'
intents: [greet, goodbye, affirm, deny, mood_great, mood_unhappy, bot_challenge]
responses:
utter_greet:
- {text: 'Hey! How are you?'}
utter_cheer_up:
- {text: 'Here is something to cheer you up:', image: 'https://i.imgur.com/nGF1K8f.jpg'}
utter_did_that_help:
- {text: 'Did that help you?'}
utter_happy:
- {text: 'Great, carry on!'}
utter_goodbye:
- {text: Bye}
utter_iamabot:
- {text: 'I am a bot, powered by Rasa.'}
session_config: {session_expiration_time: 60, carry_over_slots_to_new_session: true}
现在如何使用 POSTMAN 发送 POST 请求... 我需要发送 POST 请求,但在 POSTMAN 中我无法将 requestbody 类型设置为 x-yaml。?
【问题讨论】:
-
Postman 允许您将原始文本作为正文发送。只需选择选项 Raw 并选择文本。那应该行得通。如果您转到标题,请显示隐藏的标题。并更改内容类型或任何其他字段。
标签: post postman http-post rasa