_45// Install the C# / .NET helper library from twilio.com/docs/csharp/install
_45using Twilio.Rest.Content.V1;
_45 TwilioClient.Init(accountSid, authToken);
_45 // define the twilio/text type for less rich channels (e.g. SMS)
_45 var twilioText = new TwilioText.Builder();
_45 twilioText.WithBody("Hi {{1}}. Thanks for contacting Owl Air Support. How can we help?");
_45 // define the twilio/quick-reply type for more rich channels
_45 var twilioQuickReply = new TwilioQuickReply.Builder();
_45 twilioQuickReply.WithBody("Owl Air Support");
_45 var quickreply1 = new QuickReplyAction.Builder()
_45 .WithTitle("Contact Us")
_45 var quickreply2 = new QuickReplyAction.Builder()
_45 .WithTitle("Check gate number")
_45 var quickreply3 = new QuickReplyAction.Builder()
_45 .WithTitle("Speak with an agent")
_45 twilioQuickReply.WithActions(new List<QuickReplyAction>() { quickreply1, quickreply2, quickreply3 });
_45 // define all the content types to be part of the template
_45 var types = new Types.Builder();
_45 types.WithTwilioText(twilioText.Build());
_45 types.WithTwilioQuickReply(twilioQuickReply.Build());
_45 // build the create request object
_45 var contentCreateRequest = new ContentCreateRequest.Builder();
_45 contentCreateRequest.WithTypes(types.Build());
_45 contentCreateRequest.WithLanguage("en");
_45 contentCreateRequest.WithFriendlyName("owl_air_qr");
_45 contentCreateRequest.WithVariables(new Dictionary<string, string>() { {"1", "John"} });
_45 // create the twilio template
_45 var contentTemplate = await CreateAsync(contentCreateRequest.Build());
_45 Console.WriteLine($"Created Twilio Content Template SID: {contentTemplate.Sid}");