The bot prompt or lack there of and how to make one

Hi Im kinda new to this. Is there a way to customize the chat window such that when the bot says something that the message is preceded by the bots name?

@botname: Hi how are you today?

Also is there a way to interject blank lines between all inputs into the chat window for easier reading?

const myMiddleware = (event, next) => {
  const botName = event.botConfig.name;

  if (event.type === 'text') {
    event.text = `${botName}: ${event.text}`;
  }

  next();
}

bp.middlewares.register({
  name: 'my-middleware',
  module: myMiddleware,
  order: 100
});

Tried this but it didnt work.

You can achieve this using CSS

Thank you for the reply. May I ask you to go into a bit of detail such that a novice might be able to follow? Thanks again

I am not a CSS expert, but I am sure you can achieve the spacing you want using CSS. I will let my colleague @rohankokkula guide you through it.

Meanwhile, you can take a look at those series of articles: Overview | Botpress Documentation

About preceding the bot’s name before the message. I am not sure this is possible. I will check with the team and get back to you.

But why do you want to do so? The bot name is already in the header.

@seths225
for your question

Also is there a way to interject blank lines between all inputs into the chat window for easier reading?

what do you mean by “all inputs”?