I want to create a middleware which should do this:
1) When a new email is recieved: send the email to my custom ChatGPT.
2) The custom ChatGPT creates the response to the email.
3) My middleware should send this response to HubSpot as a draft response. In the end my sales person should only need to read the draft, maybe make some adaptions and click send.
Now my question: How do I do this?
First of all, I can’t find a WebHook which gives me the messageId of the recieved email. Second of all, I can’t find an API to create this draft.
Are there really no possibilities? Does anyone know if there maybe is a plugin which could be used?
Hi, @clara_t You are correct about there not being endpoints for what you are after. We’ll leave this here in case other community members have feedback on your idea.
Other things to consider while you’re researching:
Because there is not a sales or one-to-one email endpoint for this use case, a workaround might be to save the reply as a Note and have your sales person copy, paste, and update their reply from the Note
Once you get a solution or make some process, I’m sure our community members would love to see you work.
Which webhook would you use to get notified when I recieved a new email? I can’t find one where I get the messageId so that I know whichs message of all the messages in the thread is new. And also I need to know if the webhook was called by an incoming or outgoing message.