@Krishanth,
Can you please explain in more detail,
As per my understanding you want to convert the reply into KB and push that same to confluence?
if so, you can use Product event ( onConversationCreate) to capture the reply and with the below link you can create the KB,
here you can find how to Create a Solution Article
Eg:
/api/v2/solutions/folders/[id]/articles
to push it to confluence, please verify the confluence API.
Hope it helps
Thanks