pretty long explanation if you are starting from scratch bro,
if you look under phone numbers in the dashboard, you can assign an assistant for incoming/outgoing
is nothing assigned your server gets queried for the the assistant, the server can then add customer data to the assistant and send it back.
You can also GET an existing assistant from the dashboard that uses custom variables and have your server populate those variables, then send the assistant back, that way you can modify your assistant from the dashboard.