Catch a hook with Make.com
# 🤝help
m
How can make.com catch a hook with an API call from my chatbot where he gets data and creates a row inside Google sheets. If it is not possible, please give me an alternative to make.com other than zapier
f
Hey there, Could you elaborate a bit more on what you are trying to do? What do you mean "hook"?
a
I belive you need to use the webhook option inside of make. The execute code card will have the specific url in it which calls for make. There are plenty of videos on youtube for this subject
m
I use this code
Copy code
workflow.makeSuccess = false
  let currentDateTime = new Date()

  const messageData = {
    date: currentDateTime,
    email: workflow.email,
    phone: workflow.phone,
    name: workflow.fullname,
    product: workflow.whatProduct,
    vision: workflow.vision,
    convsummary: conversation.SummaryAgent.summary
  }


  try {
    const response = await axios.post('THIS IS WHERE YOU ADD THE LINK THAT THE HOOKS APP GIVES YOU', messageData)
    
    console.log(response.data)
    workflow.makeSuccess = true
  } catch (error) {
    console.error(error)
  }
You create a webhook module in make
Them a add row for google sheet
Then map it out on the sheet
m
okk