Moving to new line when writing reponse for retrieval actions

I want the bot to reponse in this format

  • Đối với các đơn hàng nội tỉnh: Phí trả hàng = 5.000đ/ đơn hàng (đã bao gồm VAT) Thời gian hoàn trả 3-5 ngày làm việc.
  • Các đơn hàng liên tỉnh: Phí trả hàng = 50% phí chuyển đi Thời gian hoàn trả 7-12 ngày làm việc

I tried adding \n, or - text: " TEXT", or just write in new line but nothing work

hi @TQuy,

Try the br tag instead of \n, if you have a UI

regards

@TQuy Can you please share the NLU pipeline config that you are using?

My NLU pipeline is below:

language: en

pipeline:

  • name: “WhitespaceTokenizer”
  • name: “RegexFeaturizer”
  • name: “CountVectorsFeaturizer” analyzer: ‘char’ min_df: 1 max_df: 1.0 min_ngram: 1 max_ngram: 5
  • name: “EmbeddingIntentClassifier” “epochs”: 30
  • name: “ResponseSelector”

policies:

  • name: “FallbackPolicy” nlu_threshold: 0.4 core_threshold: 0.3 fallback_action_name: “action_default_fallback”
  • name: MemoizationPolicy max_history: 5
  • name: FormPolicy
  • name: MappingPolicy
  • name: KerasPolicy “epochs”: 60 max_history: 5

I tried on telegram but
or \n both doesn’t work. I am talking about the retrieval response responses.md (3.4 KB)

Hi,

I am kind of the confused with response.md, based on the format it looks more like stories.md, i guess.If it is stories.md then

Instead of directly displaying your message like

chitchat greet

  • chitchat/greet
    • Kính chào quý khách! GHTK bot có thể hỗ trợ quý khách việc gì ạ ?

Do something like

chitchat greet

  • chitchat/greet
    • utter_greet

Inside the domain.yml add something like

templates:

utter_greet:

  • text : 'Kính chào quý khách! GHTK bot <br> có thể hỗ trợ quý khách việc gì ạ ?"

I guess this should work since i have tried it both in slack and web apps and was rendered correctly

I hope this helps

The guide is in here Retrieval Actions . I tried what you suggested but it also failed

Hi @TQuy , Thanks for bringing this up. You are right, adding \n won’t work. Looking into this, will let you know once it’s fixed.

oops sorry about that :blush:. I never thought it was with Retrieval Actions. My bad