How is your experience with the OutSystems Community?
57
Views
4
Comments
need to create a chatbot using agentic ai

hi guys i need to create a chatbot in ODC agentic ai like asking question like , name after i send the name ask for the age and after i send the age ask for the country after that i need to be return a json text containing a  the above values, I tried by my self but it doesn't remember the name and ask the name again after the country

2024-10-12 12-11-20
Kerollos Adel
Champion

hallo @Surya K 


  • Ensure that memory saving works correctly Verify that the system is storing and retrieving memory as expected.

  • Confirm that the session ID is provided and all communication is linked to it Every interaction should be associated with the correct session ID for consistency.

  • Make sure the prompt is clear and well-structured The prompt should explain the requirements in detail and include an example for clarity.

Example Prompt:

Task: Generate a summary of user activity.Requirements:- Include session ID in the output.- Show last 5 interactions.- Format as JSON.Example Output:{  "sessionId": "12345",  "lastInteractions": [    "User logged in",    "Viewed dashboard",    "Updated profile",    "Requested report",    "Logged out"  ]}


Recommendation I suggest this training because it closely matches what you are asking for.

https://learn.outsystems.com/training/journeys/build-agentic-powered-app-3411/build-the-enrichment-agent-exercise/odc/10818



2025-09-21 06-51-05
Mohd Anees Mansoori

Hi surya,

Apart from kerollos adels suggestions.

I would suggest you to go through full training in building agentic powered apps.

https://learn.outsystems.com/training/journeys/build-agentic-powered-app-3411

Regards

Anees

UserImage.jpg
Salman Al Ghamdi

I know this thread is a bit old, but I ran into the same issue with ODC agentic AI losing memory.

The trick is passing a consistent SessionId with every server call, otherwise the engine treats every chat message as a brand new request. You also need to append both user and agent responses to a message list variable and pass that whole history back on every turn.

If you're parsing date inputs in your final JSON, make sure to check age math manually against an external utility to verify your boundary cases are working right before storing it in the database.

2026-03-13 15-51-13
Samuel Espinoza

Adding to those recommendations here's also a really interesting video step by step from Outsystems youtube channel in there they also explain how to create a chatbot.

Getting Started with AI in Outsystems

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.