Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

'from' details missing when sending responses to Bot Framework

Open
#18 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
api, backend

Research direction

Start at the buildServicePayload method mentioned in the report and trace the incoming request data used to construct the Bot Framework response. Use the Bot Framework Emulator flow described in the issue to verify that the response includes the required from name and id and that “Hello!” is accepted instead of returning HTTP 400.

Written by the indexing model from the issue text.

Description

I've not gotten as far as trying this with Microsoft teams but I've setup a new copy of Botman Studio with the Bot Framework driver and am testing it with the Bot Framework Emulator.

So using the out of the box routes and such, I'm getting a 400 response from the callback being sent to the emulator when sending the message "Hi" from the emulator. I'm expecting botman to reply with "Hello!"

{
"error": {
"code": "ServiceError",
"message": "Cannot read property 'name' of undefined"
}
}

It looks like the payload being sent is missing fields.

Botman is sending the following payload as a response which results in the 400 from the emulator

{"payload":{"type":"message","text":"Hello!"}}

Manually adding a from the id and bot name to the payload within the buildServicePayload method allows the message to be received

        $additionalParameters = [
            'from' => [
                'name' => 'Bot',
                'id' => '*ID*FROM*REQUEST*',
            ],
        ];

Payload sent to callback url

{"payload":{"type":"message","from":{"name":"Bot","id":"IDFROMREQUEST"},"text":"Hello!"}}

I'm fairly new to BotMan so not familiar enough with the flow of everything to fix this yet.

Dominant language
PHP
Stars
9
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from botman/driver-botframework

All issues in botman/driver-botframework

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.