Skip to content

Unable to send image in the convo file while using directline as connector #827

@Sharath1228

Description

@Sharath1228

While sending image in convo.txt I am getting below error.
error sending to bot - directLine.checkConnection is not a function

To Reproduce
Install node.js
Install botium-CLI
Install botium directline connector
Now after Init
Add the convo.txt as below by sending image

#me
MEDIA TestImage.png

#bot
IMAGE

Maintain a TestImage.png file.

Run the command "botium-cli run" in the command prompt.

Actual behavior:
It is not sending image instead throwing the error "error sending to bot - directLine.checkConnection is not a function"

Expected behavior
It should image to bot and the expected reply should be get without error.

Screenshots and Log files

Image

Node js version : v22.18.0
npm version - 10.9.3
botium- cli version - 1.1.0
botium-connector-directline3 version - 0.1.2

Botium json provided:

{
"botium": {
"Capabilities": {
"PROJECTNAME": "My chatbot test",
"CONTAINERMODE": "directline3",
"DIRECTLINE3_SECRET": "secret",
"DIRECTLINE3_BUTTON_TYPE": "message",
"DIRECTLINE3_BUTTON_VALUE_FIELD": "text",
"DIRECTLINE3_HANDLE_ACTIVITY_TYPES": "message,event",
"CLEANUP_BOT_CONTEXT": false,
"DIRECTLINE3_GENERATE_USERNAME": true,
"DIRECTLINE3_ACTIVITY_TEMPLATE": {
"channelData": {
"botiumTestConversationId": "{{botium.conversationId}}",
"botiumTestUserId": "{{msg.sender.name}}"
}
},
"USER_INPUTS": [
{
"ref": "MEDIA",
"src": "MediaInput",
"args": {
"downloadMedia": true
}
}
],
"WAITFORBOTTIMEOUT": 60000
}
}
}

Convo text:
HAppyPath Cashout flow

#me
cashout2025

#bot
I'm rebate bot, please type "CASHOUT2025" to get rebate!

#bot
[Promo] is available from 2024-12-02 to 2026-01-15. Please reply with: 1 or Next for next steps 2 or STOP to cancel 3 or FAQ

#me
BUTTON(NEXT)

#bot
Purchase [#] [Product] from any retailer between 2024-12-02 and 2026-01-15. Submit your receipt by 2024-12-02 00:00:00 to receive cash back via Venmo or PayPal. For additional details, please read our Terms and Conditions.

#bot
Reply with: 1 or AGREE to accept the Terms and Conditions.

#me
Agree

#bot
Please send us a clear photo of your entire receipt. You can upload up to 5 images. The receipt should include the [Product] item, purchase date, and state. Remember, the last day of submission is 2026-01-15 04:59:59.

#me
MEDIA TestImage.png

#bot
IMAGE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions