About custombody setting in multipart/form-data

To whom it may concern

We are currently in the process of delivery and would appreciate an early reply.
We need to send an email, and it is essential to upload an email list file (csv file) to send the email.
The csv file upload specification has been confirmed by POSTMAN and we are trying to replace it with Kore.ai.

The method
POST:https://remote.mpse.jp/waidemo/remote/upload.php
Content-Type:multipart/form-data; boundary=hogehoge
body:Custom
“{{context.request}}”

scriptnode-configuration
context.request = “–hogehogeContent-Disposition: form-data; name="login_id"\n\nwaidemoXXXXXX\n–hogehogeContent-Disposition: form- data; name="password"\n\nQuesutXXXXXX!\n–hogehoge\nContent-Disposition: form-data; name="id"\n\n100\n–hogehoge\nContent- Disposition: form-data; name="title"\n\ntest\n–hogehogeContent-Disposition: form-data; name="FILE"; filename="email.csv"\ nContent-Type: application/vnd.ms-excel\n\n\nemail,id,pw\ntoru.miyake@quest.co.jp,2023,1218\n–hogehoge–”;

Originally I would like to set the following information

–hogehoge
Content-Disposition: form-data; name=“login_id”

waidemoXXXX
–hogehoge
Content-Disposition: form-data; name=“password”

QuesutXXXXXXXX!
–hogehoge
Content-Disposition: form-data; name=“id”

100
–hogehoge
Content-Disposition: form-data; name=“title”

test
–hogehoge
Content-Disposition: form-data; name=“FILE”; filename=“email.csv”
Content-Type: application/vnd.ms-excel

email,id,pw
toru.miyake@XXXXX.co.jp,2023,1218
–hogehoge–

The error message is

"traversedIntents": [
	{
		"name": "Welcome Task",
		"dialogId": "dg-561ab594-a3e4-55ea-b45c-a987300f6d67"
	},
	{
		"name": "メール送信テスト",
		"dialogId": "dg-d10fbe84-a0a4-5230-84d3-d784a2e18d08"
	}
],
"contextId": "dcx-4a473c2c-d19e-5313-927a-30d94599eae1",
"message_tone": [],
"dialog_tone": [],
"isDeveloper": true,
"request": "--hogehoge\nContent-Disposition: form-data; name=\"login_id\"\n\nwaidemoXXXX\n--hogehoge\nContent-Disposition: form-data; name=\"password\"\n\nQuesutXXXXXX!\n--hogehoge\nContent-Disposition: form-data; name=\"id\"\n\n100\n--hogehoge\nContent-Disposition: form-data; name=\"title\"\n\ntest\n--hogehoge\nContent-Disposition: form-data; name=\"FILE\"; filename=\"email.csv\"\nContent-Type: application/vnd.ms-excel\n\nemail,id,pw\ntoru.miyake@XXXX.co.jp,2023,1218\n--hogehoge--",
"Service0001": {
	"response": {
		"statusCode": 500,
		"body": "Error Occured while Resolving"
	}
},

Hi @toru.miyake ,

Thank you for reaching out to Kore.ai Community.
Could you please share the below information.

  1. Could you please elaborate more on the use case which you are trying to achieve
  2. Please share what is the input which you are trying to send?
  3. Screenshots from Postman
  4. Please share the curl which used and also please confirm from where did you receive that curl.

Thank you,
Srujan Madderla
Kore.ai Community Team

  1. Could you please elaborate more on the use case which you are trying to achieve
    The systemization target is a TV station, which will create a bot for consumers.
    a. Consumer connects to the bot
    b. Consumer asks the bot for ID and password for the service site.
    c. Bot retrieves ID and password information from Salesforce.
    d. The bot sends the ID and password information to the consumer via email.

  2. Please share what is the input which you are trying to send?
    context.request = ‘–hogehoge\nContent-Disposition: form-data; name=“login_id”\n\nwaidemo0315\n–hogehoge\nContent-Disposition: form-data; name=“password”\n\nQuesut202312!\n–hogehoge\nContent-Disposition: form-data; name=“id”\n\n100\n–hogehoge\nContent-Disposition: form-data; name=“title”\n\ntest\n–hogehoge\nContent-Disposition: form-data; name=“FILE”; filename=“email.csv”\nContent-Type: application/vnd.ms-excel\n\nemail,id,pw\ntoru.miyake@quest.co.jp,2023,1218\n–hogehoge–’;

3.Screenshots from Postman


  1. Please share the curl which used and also please confirm from where did you receive that curl.
    I did not run the curl command.

=============================
Additional curl information

curl --location ‘https://remote.mpse.jp/waidemo/remote/upload.php
–header ‘Content-Type: multipart/form-data; boundary=hogehoge’
–header ‘Cookie: mpme_session=6f64f6fe9679b441da176f4955bf52a3’
–data-raw '–hogehoge
Content-Disposition: form-data; name=“login_id”

waidemo0315
–hogehoge
Content-Disposition: form-data; name=“password”

Quesut202312!
–hogehoge
Content-Disposition: form-data; name=“id”

100
–hogehoge
Content-Disposition: form-data; name=“title”

test
–hogehoge
Content-Disposition: form-data; name=“FILE”; filename=“email.csv”
Content-Type: application/vnd.ms-excel

email,id,pw
toru.miyake@quest.co.jp,2023,1218
–hogehoge–’

Hi @toru.miyake ,

Thank you for sharing the curl and requested information.
We have observed that you have already raised a support ticket for this.

To avoid duplication, lets track the reported issue on support ticket which you have raised.

Thank you,
Srujan Madderla
Kore.ai Community Team

Okay, thank you very much.