Skip to content

sendCustomAction before any message fails. #71

@yotaro-shimose

Description

@yotaro-shimose

Hello.

Thank you for your fantastic work.

I am using custom backend (python SDK) and facing an issue where the sendCustomAction call results in error:

ChatKit: sendAction() ignored - no active thread.

The code snippet:

await chatkit.sendCustomAction({
      type: 'my_action_type',
      payload: {
          <my_payload_here>
      },
})

This does not happen after I send a message from the chatkit UI. I want to use the customAction so that agent is always sync with the UI state, which can potentially happen before the first user message.

Is the sendCustomAction before the user message not expected?
What is the best practice to sync the UI state to the agent context?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions