# Inserting msg.payload into python script (using pythonshell) from .JS file of custom node to process and get its output

**URL:** <https://discourse.nodered.org/t/inserting-msg-payload-into-python-script-using-pythonshell-from-js-file-of-custom-node-to-process-and-get-its-output/55057>\
**Category:** Developing Nodes\
**Created:** [11 December 2021 18:58 UTC](https://discourse.nodered.org/t/inserting-msg-payload-into-python-script-using-pythonshell-from-js-file-of-custom-node-to-process-and-get-its-output/55057 "2021-12-11T18:58:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monarch](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@Monarch](https://discourse.nodered.org/u/Monarch)\
**Post date:** [11 December 2021 18:58 UTC](https://discourse.nodered.org/t/inserting-msg-payload-into-python-script-using-pythonshell-from-js-file-of-custom-node-to-process-and-get-its-output/55057/1 "2021-12-11T18:58:20Z")

</div>

I have made a custom python node , i want to pass msg.payload from my ' java script ' to the 'python script' using (pythonshell) and get back the processed value and pass them onto the next node as input...(Note: I dont intend to use any exisiting python node.)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 February 2022 18:59 UTC](https://discourse.nodered.org/t/inserting-msg-payload-into-python-script-using-pythonshell-from-js-file-of-custom-node-to-process-and-get-its-output/55057/2 "2022-02-09T18:59:01Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
