Maruf WellnessExpress
11/22/2024, 12:30 AMVapi
11/22/2024, 12:33 AMpython
from flask import Flask, request
app = Flask(__name__)
@app.route('/receive_data', methods=['POST'])
def receive_data():
data = request.json
name = data.get('name')
phone = data.get('phone')
email = data.get('email')
# Process the data as needed
return 'Data received', 200
if __name__ == '__main__':
app.run(debug=True)
Make sure your server is properly secured to handle personal data and complies with any relevant data protection laws.
If you need any further assistance with setting up your server or configuring VAPI, please let me know!Vapi
11/22/2024, 12:33 AMMaruf WellnessExpress
11/22/2024, 12:35 AMShubham Bajaj
11/23/2024, 2:26 PMend-of-call-report
3. Now Collect user data using prompt/assistant.
4. Use analysis plan - structured data to extract user data from the transcript.
5. Now make a call and at the end of call after 30 seonds Vapi will send end of call report to your server url. This report will call analysis along with other data, look for analysis.strucutredData you will find your required data.Shubham Bajaj
11/23/2024, 2:27 PM