can we modify global variables in kore.ai bot

I would like to use global variable as normal variable that store values every time
like this <env.variable = context.somevalue>
But it is not working like variable, it is working like constant

Hi @srihari.posanapalli,

Ideally, global variables are static and can only be modified through UI.

You can use BotUserSession variables which will persist the value all over the bot for that specific user and session. These variables are dynamic.
Please refer the following document for more information on variables:
https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/using-session-and-context-variables-in-tasks/

Let us know if you have any further issues/queries.

Regards,
Yoga Ramya.

In a Service Node, Web service, REST POST request body, How do I modify arrays of JSON body with varaiables

My full json body is this,

{ “startInfo”:
{ “ReleaseKey”: “{{context.entities.input_ReleaseKey}}”,
"Strategy": “{{context.entities.input_Strategy}}”,
"RobotIds": [ 123457 ],
"NoOfRobots": 0,
"Source": “Manual”,
"InputArguments": "{}"
}
}

I have tried this, error is at “RobotIds”: [ “{{context.entities.input_RobotID}}” ]
Error while giving Variables in array

Array Data type is Numeric