-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
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.