As you present no additional information or data i can only offer an example. Hopefully you can break it down. As I do not use Thingspeak i have used a public mqtt server, that why i added a unique ref.
The example shows how to add a string into a topic to publish msg.payload.
[{"id":"28b404d83fbcbec5","type":"inject","z":"febe25a17f3bb5df","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"temperature\":20,\"humidity\":70}","payloadType":"json","x":292.9999885559082,"y":100.00000286102295,"wires":[["5d0db1e8d16ffcf4"]]},{"id":"5d0db1e8d16ffcf4","type":"split","z":"febe25a17f3bb5df","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":432.9999885559082,"y":100.00000286102295,"wires":[["737ef434a0143382","59d2079ac3552883"]]},{"id":"737ef434a0143382","type":"template","z":"febe25a17f3bb5df","name":"","field":"topic","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"unique_ref_ug5k786/channels/{{parts.key}}/publish","output":"str","x":602.9999885559082,"y":100.00000286102295,"wires":[["a44ef113e9122992","8d993f891cc7bb03"]]},{"id":"59d2079ac3552883","type":"debug","z":"febe25a17f3bb5df","name":"debug 291","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":592.9999885559082,"y":40.00000286102295,"wires":[]},{"id":"a44ef113e9122992","type":"mqtt out","z":"febe25a17f3bb5df","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"9704c3ad5fdb77c8","x":772.9999885559082,"y":100.00000286102295,"wires":[]},{"id":"8d993f891cc7bb03","type":"debug","z":"febe25a17f3bb5df","name":"debug 293","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":812.9999885559082,"y":40.00000286102295,"wires":[]},{"id":"b0d0d66499f5396b","type":"mqtt in","z":"febe25a17f3bb5df","name":"","topic":"unique_ref_ug5k786/channels/+/publish","qos":"2","datatype":"auto-detect","broker":"9704c3ad5fdb77c8","nl":false,"rap":true,"rh":0,"inputs":0,"x":440,"y":180,"wires":[["91514e98d6e64169"]]},{"id":"91514e98d6e64169","type":"debug","z":"febe25a17f3bb5df","name":"debug 292","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":730,"y":180,"wires":[]},{"id":"9704c3ad5fdb77c8","type":"mqtt-broker","name":"","broker":"broker.hivemq.com","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
How to import a flow