Skip to content

Simple chatbot react client example needs requestData #112

@kstonekuan

Description

@kstonekuan

I was unable to get the react client example for simple-chatbot to work as it sends a null payload to the server. I need to add this requestData to the params for the request body to be parsed correctly and also set createDailyRoom to true if I don't set the room url which is said to be optional in the server README.md.

        await client.startBotAndConnect({
          endpoint: 'http://localhost:7860/start',
          requestData: {
            createDailyRoom: true,
          }
        });

References:

await client.startBotAndConnect({
endpoint: "http://localhost:7860/start",
});

DAILY_SAMPLE_ROOM_URL=https://yourdomain.daily.co/yourroom # (optional: for joining the bot to the same room repeatedly for local dev)

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