Skip to content

[Feature Request] New attribute in WhatsappAPI Class for message separation options. #4083

@Paulopma

Description

@Paulopma

Problem Description

Hello. I hope you’re all doing well.

I’ve been learning to use the Agno framework for a few weeks now, primarily working with the WhatsappAPI class. I’m from Brazil, and WhatsApp is extremely popular and widely used here.

Currently, my agent sends large blocks of text in the replies, which doesn’t really match the usual WhatsApp conversation style, where replies are typically separated by paragraphs.

Example of current behavior

Agent:
Good afternoon, my name is Bianca and I’ll be assisting you today

Please provide your basic information so we can continue:
First name
Last name
CPF
Date of birth

Don’t worry, your data is safe with us.

Example with paragraph-separated responses

Agent:
Good afternoon, my name is Bianca and I’ll be assisting you

Agent:
Please provide your basic information so we can continue:
First name
Last name
CPF
Date of birth

Agent:
Don’t worry, your data is safe with us.

This way, the responses would feel more natural—like in a human-to-human conversation.

I’ve tried many different approaches using the WhatsappAPI class, but haven’t found a way to make it work.

Proposed Solution

Maybe we could have an additional attribute in the class to define the message-splitting behavior:

whatsapp_app = WhatsappAPI(
agent=agent.agent,
description="Humanized support assistant for appointment scheduling via WhatsApp"
message_splitting: "\n\n"
)

Alternatives Considered

No response

Additional Context

No response

Would you like to work on this?

  • Yes, I’d love to work on it!
  • I’m open to collaborating but need guidance.
  • No, I’m just sharing the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions