Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occured while executing an agent hook: Cannot read properties of undefined (reading 'startsWith') #1836

Open
wired87 opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wired87
Copy link

wired87 commented Aug 12, 2024

Hi every time i send a message to the bot i get the follwong issue logs within the bot dashboard - issue section:

Events
15
Event
Time
Data
2024-08-12 11:00:42

  • 7 more
    overrides
    N/A
    hookType
    conversation_turn_before_reply
    message
    An error occured while executing an agent hook: Cannot read properties of undefined (reading 'startsWith')
    hookContext
    {
    "messages": [
    {
    "id": "ff4e650d-84af-4cc5-b20f-167c19de593d",
    "type": "text",
    "direction": "outgoing",
    "payload": {
    "type": "text",
    "text": "Thank you for using our service. Have a great day!",
    "typing": true
    },
    "botId": "fd716950-6cdc-412f-8956-674a6fbe0615",
    "createdOn": "2024-08-12T09:00:34.054Z",
    "conversationId": "conv_01J51GHZE737QMM64SCYPR10QC",
    "preview": "Thank you for using our service. Have a great day!",
    "incomingEventId": "c12c9797-57c6-4023-9201-36f056d14477"
    }
    ]
    }
    finalConfig
    {
    "active": true,
    "personality": {
    "valueType": "dynamic",
    "dynamicValue": "You are an AI chatbot named Botworld Ai Assitent from Botworld. Your primary role is to provide accurate and direct responses using information from the knowledge base. You are efficient, concise, and ready to assist users with inquiries. When a relevant link is provided in the knowledge base, you include it in your response to offer additional information. You maintain a professional yet approachable demeanor, ensuring users feel supported and understood throughout their interactions.",
    "staticValue": ""
    }
    }
    normalConfig
    {
    "active": true,
    "personality": {
    "valueType": "dynamic",
    "dynamicValue": "You are an AI chatbot named Botworld Ai Assitent from Botworld. Your primary role is to provide accurate and direct responses using information from the knowledge base. You are efficient, concise, and ready to assist users with inquiries. When a relevant link is provided in the knowledge base, you include it in your response to offer additional information. You maintain a professional yet approachable demeanor, ensuring users feel supported and understood throughout their interactions.",
    "staticValue": ""
    }
    }
    stack
    ROOT [Running – 222ms]
    ├─┬ Workflow: Timeout [Done – 61ms]
    │ ├─┬ Card: Timeout/On_Timeout/transition #1 [Done – 19ms]
    │ │ └── Transition: true [Done – 17ms]
    │ ├─┬ Card: Timeout/Handler/tmp-transition [Done – 1ms]
    │ │ └── Transition: true [Done – 0ms]
    │ └─┬ Card: Timeout/End/transition #1 [Done – 0ms]
    │ └── Transition: true [Done – 0ms]
    ├─┬ Card: Conversation End/On_Explicit_Ending/transition #1 [Done – 0ms]
    │ └── Transition: true [Done – 0ms]
    ├─┬ Card: Conversation End/Standard1/content #1 [Done – 62ms]
    │ └── Agent: SummaryAgent/conversation_turn_action [Done – 41ms]
    ├─┬ Card: Conversation End/Standard1/tmp-transition [Done – 0ms]
    │ └── Transition: true [Done – 0ms]
    └─┬ Agent: PersonalityAgent/conversation_turn_before_reply [Running – 24ms]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    └── agents/PersonalityAgent/0.1 [Done – 1ms]
@wired87 wired87 added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant