Long Lee
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ## 4. Solution Design ### 4.1 System Architecture Overview Chúng tôi xây dựng một hệ thống Automatic Agentic AI PLatform cho tư vấn tài chính. Hệ thống được vận hành trên kiến trúc Microservices + Automatic Multi-Agent + Realtime Intelligence, triển khai hoàn toàn trên AWS cloud Hệ thống không chỉ phản hồi người dùng mà còn quan sát hành vi của người dùng, phân tích dữ liệu hiện tại và đưa ra lời khuyên theo thời gian thực với cơ chế đánh giá độ tin cậy và kiểm soát rủi ro. Điểm khác biệt của hệ thống so với các hệ thống agent khác đó chính là: + Agentic AI tự nhận thức với confidence scoring và sự kiểm soát của con người. + Realtime Market Intelligence (Tư vấn tài chính sử dụng thông tin thời gian thực về thị trường để đưa ra lời khuyên cho người dùng đầu tư). Đưa ra cảnh báo rủi ro và khuyến nghị cổ phiếu có kiểm soát + Explainability khi đưa ra lời khuyên dựa vào việc phân tích hành vi giao dịch của người dùng. ## 4.2. Key Components ### 4.2.1. Secure Entry & Session Layer Hệ thống được bảo vệ bởi: AWS WAF – chống tấn công web phổ biến Amazon Cognito – quản lý xác thực & danh tính Amazon API Gateway – entry point tập trung Conversation Service chạy trên Amazon ECS và session controller bằng AWS Lambda. ### 4.2.2 Agentic Core Trung tâm điều phối là Supervisor Agent: Workflow orchestration bằng AWS Step Functions Message queue qua Amazon SQS Multi-agent logic chạy trên AWS Bedrock: + Behavior Detection Agent + User sentiment Agent + Stock Advisory Agent + Explainable Insight Agent + Product Recommendation Agent + Memory Summary Agent + Confidence Scoring Agent ### 4.2.3. Tiered Memory & Data Strategy + Short-term Memory: Recent interactions are stored in PostgreSQL (Aurora) with pgvector for fast retrieval of immediate context. + Long-term Memory: Historical data is vectorized and stored in a separate PostgreSQL (Aurora) instance, enabling Semantic Search and RAG (Retrieval-Augmented Generation) capabilities. + Data Lake: Amazon S3 serves as the central repository for raw data and archival storage. ### 4.2.4 Monitoring & Security Layer + Encryption: Data at rest is encrypted using AWS KMS (Key Management Service). + Access Control: Granular permissions are enforced via IAM Roles, adhering to the principle of least privilege. + Monitoring: Amazon CloudWatch provides end-to-end observability, capturing logs and metrics from all services to monitor system health and AI performance. ## 5. Intelligence Advisory Engine Hệ thống có hai luồng kích hoạt advisory chính: ### 5.1 Chat-Triggered Advisory Flow Hệ thống cũng kích hoạt advisory khi người dùng: + Hỏi về thống kê chi tiêu, phân tích lỗ hổng chi tiêu + Hỏi về lịch sử giao dịch + Xin lời khuyên về danh mục đầu tư + Hỏi phân tích rủi ro #### Step 1: Intent Classifier Conversation Service gửi yêu cầu tới Supervisor Agent. Supervisor xác định intent: + Financial Product Information + Transaction History + Portfolio Information + Recommendation #### Step 2: Agent Calling Kích hoạt các agent tương ứng, tổng hợp kết qủa và đi qua Responsible AI Layer trước khi trả về cho người dùng. ### 5.2 Transaction-Triggered Advisory Flow Khi người dùng thực hiện giao dịch chuyển tiền hoặc giao dịch mua cổ phiêú. #### Step 1: Trigger Transaction service trigger event và gửi sang AWS MSK #### Step 2: Realtime Analysis Feature Engine extract features và lưu trữ vào AWS Sagemaker Feature Store. + Giao dịch chuyển tiền Đối với các giao dịch chuyển tiền, các features được trích xuất như: + Danh mục chi tiêu nhiều trong 3 tháng gần nhất + Tổng lượng tiền chi tiêu tăng hay giảm + Tần suất chuyển tiền trong mỗi danh mục + Có phải là 1 chi tiêu trả góp không. + ... + Giao dịch mua bán cố phiếu Đối với các giao dịch mua bán cổ phiếu các features được trích xuất như: + Mức độ biến động giá của cổ phiếu. + Giá mua/bán hiện tại so với mức gíá trung bình, giá high, giá low trong vòng 7 ngày trước + % các ngành trong danh mục đầu tư... + ... #### Step 3: Behavior Detection Service Dựa vào những thông tin trích xuất features, sử dụng AWS Sagemaker huấn luyện mô hình machine learning để detect behavior giao dịch của người dùng (Thích mua sắm hoặc thích mua các cổ phiếu của ngành sắt thép). #### Step 4: Advisory Generation + Stock Agent Stock Agent sẽ cung cấp insight và khuyến nghị phòng người + "Mã cổ phiếu đang trong vùng biến động cao 30 ngày."" + "Danh mục của bạn đang phân bổ 60% vào một ngành sắt thép" + "Cố phiếu VIC đang có dấu hiệu điều chỉnh ngắn hạn" + Finance Product Recommendation Agent Recommendation Agent sẽ cung cấp các sản phẩm khuyến nghị dựa vào hành vi của người dùng, thông tin người dùng, lịch sử giao dịch, lịch sử hội thoại và bối cảnh hiện tại của thị trường. ## 6. Responsible AI & Safety Governance Layer Hệ thống đánh giá rủi ro mọi lời khuyến nghị trước khi gửi tới người dùng bằng Responsible AI & Safety Governance Layer Layer đóng vai trò như AI Decision Quality Gate Layer, giúp hệ thống: + Tự đánh giá mức độ tin cậy của khuyến nghị + Kiểm soát nội dung nhạy cảm (Mua bán cổ phiếu, phân bổ danh mục) Layer này hoạt động sau bước Advisory Generation và trước khi phản hồi được trả về cho người dùng. ### 6.1. Confidence Scoring Dựa vào Model Certainty Score, Context Completeness Score Điểm tổng hợp cuối cùng lớn hơn một ngưỡng thì advisory được gửi trực tiếp tới user. ### 6.2 Confidence branching Nếu điểm nhỏ hơn ngưỡng, hệ thống xử lý theo các bước sau: + Advisory được gắn trạng thái "Pending Human Review". + Case được đẩy vào internal queue. + Financial Advisor nhận thông báo qua dashboard. + Người dùng nhận thông báo trung tính: "Khuyến nghị của AI đang được chuyên gia tài chính xem xét để đảm bảo độ chính xác." Cơ chế này đảm bảo: + Không đưa ra khuyến nghị rủi ro khi hệ thống không chắc chắn. + Luôn có lớp kiểm soát của con người đối với nội dung nhạy cảm. ### 6.3. Explainable Insight Agent Mỗi advisory đều đi kèm tóm tắt reasoning (do Explainable Insight Agent cung cấp) Các yếu tố ảnh hưởng chính (key contributing features) đến quyết định gợi ý sản phẩm đó cho người dùng. Ví dụ: "3 tháng gần đây bạn đi du lịch nhiều. VÌ vậy hãy dùng thẻ travel card để được giảm giá và hoàn tiền lên tới 10%"

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully