{"id":4387,"date":"2025-11-17T12:31:38","date_gmt":"2025-11-17T12:31:38","guid":{"rendered":"https:\/\/resources.theapaafrica.org\/assistant-ia\/"},"modified":"2026-01-13T07:12:39","modified_gmt":"2026-01-13T07:12:39","slug":"assistant-ia","status":"publish","type":"page","link":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/","title":{"rendered":"Assistant IA"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4387\" class=\"elementor elementor-4387 elementor-4377\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-47c4318 e-flex e-con-boxed e-con e-parent\" data-id=\"47c4318\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-9ab1d85 e-con-full e-flex e-con e-child\" data-id=\"9ab1d85\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4302451 elementor-widget elementor-widget-shortcode\" data-id=\"4302451\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\r\n    <div id=\"ai-concierge-chat\" class=\"chatbox\">\r\n        <h4>Votre concierge IA pour l&#039;Afrique<\/h4>\r\n        <div id=\"ai-messages\" class=\"messages\">\r\n            <div class=\"bot-message\">Votre assistant personnel IA pour une planification de voyage sur mesure en Afrique. B\u00e9n\u00e9ficiez de conseils d&#039;experts sur les destinations, la culture, la logistique et la s\u00e9curit\u00e9.<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"input-area\">\r\n            <label for=\"ai-file-input\" class=\"file-upload-btn\" title=\"Attach a file\">\r\n                \ud83d\udcce\r\n                <input type=\"file\" id=\"ai-file-input\" style=\"display:none;\" \/>\r\n            <\/label>\r\n\r\n            <div class=\"file-info\" id=\"ai-file-info\" style=\"display:none;\">\r\n                <span id=\"ai-file-name\" class=\"file-name\"><\/span>\r\n                <span id=\"ai-remove-file\" class=\"remove-file\" title=\"Remove file\">&times;<\/span>\r\n            <\/div>\r\n\r\n            <input type=\"text\" id=\"ai-user-input\" placeholder=\"Tapez votre message...\" \/>\r\n            <button id=\"ai-send-btn\">Envoyer<\/button>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <style>\r\n        .chatbox {\r\n            max-width: 100%;\r\n            margin: 40px auto;\r\n            border: 1px solid #ccc;\r\n            border-radius: 12px;\r\n            padding: 20px;\r\n            box-shadow: 0 4px 10px rgba(0,0,0,0.1);\r\n            font-family: Arial, sans-serif;\r\n        }\r\n        .chatbox h4 { text-align: center; margin-bottom: 15px; }\r\n        .messages {\r\n            height: 300px;\r\n            overflow-y: auto;\r\n            padding: 10px;\r\n            background: #fafafa;\r\n            border-radius: 8px;\r\n            margin-bottom: 10px;\r\n        }\r\n        .bot-message, .user-message {\r\n            margin-bottom: 10px;\r\n            padding: 8px 10px;\r\n            border-radius: 8px;\r\n        }\r\n        .bot-message { background: #e8f0fe; }\r\n        .user-message { background: #d1e7dd; text-align: right; }\r\n        .input-area {\r\n            display: flex;\r\n            align-items: center;\r\n            gap: 8px;\r\n            flex-wrap: wrap;\r\n        }\r\n        .input-area input[type=\"text\"] {\r\n            flex: 1;\r\n            padding: 8px;\r\n            border-radius: 6px;\r\n            border: 1px solid #ccc;\r\n        }\r\n        .input-area button {\r\n            background: #4EAC44;\r\n            color: #fff;\r\n            border: none;\r\n            border-radius: 6px;\r\n            padding: 8px 16px;\r\n            cursor: pointer;\r\n            height:44.39px;\r\n        }\r\n        .input-area button:hover { background: #3d8f37; }\r\n        .file-upload-btn {\r\n            display: inline-flex;\r\n            align-items: center;\r\n            justify-content: center;\r\n            width: 36px;\r\n            height: 36px;\r\n            background: #eee;\r\n            border-radius: 8px;\r\n            cursor: pointer;\r\n            font-size: 20px;\r\n            border: 1px solid #ccc;\r\n        }\r\n        .file-upload-btn:hover { background: #ddd; }\r\n\r\n        .file-info {\r\n            display: flex;\r\n            align-items: center;\r\n            gap: 5px;\r\n            background: #f2f2f2;\r\n            border-radius: 8px;\r\n            padding: 4px 8px;\r\n        }\r\n        .file-name {\r\n            font-size: 12px;\r\n            color: #333;\r\n            max-width: 120px;\r\n            overflow: hidden;\r\n            text-overflow: ellipsis;\r\n            white-space: nowrap;\r\n        }\r\n        .remove-file {\r\n            color: #a00;\r\n            font-size: 18px;\r\n            cursor: pointer;\r\n            font-weight: bold;\r\n            line-height: 1;\r\n        }\r\n        .remove-file:hover { color: #e00; }\r\n        @media (max-width: 480px) {\r\n            .input-area { flex-direction: column; align-items: stretch; }\r\n            .input-area button, .input-area input[type=\"text\"] { width: 100%; }\r\n        }\r\n    <\/style>\r\n\r\n    <script>\r\n    document.addEventListener('DOMContentLoaded', function() {\r\n        const sendBtn = document.getElementById('ai-send-btn');\r\n        const input = document.getElementById('ai-user-input');\r\n        const messages = document.getElementById('ai-messages');\r\n        const fileInput = document.getElementById('ai-file-input');\r\n        const fileNameSpan = document.getElementById('ai-file-name');\r\n        const fileInfoBox = document.getElementById('ai-file-info');\r\n        const removeFileBtn = document.getElementById('ai-remove-file');\r\n        let selectedFile = null;\r\n\r\n        fileInput.addEventListener('change', () => {\r\n            if (fileInput.files.length > 0) {\r\n                selectedFile = fileInput.files[0];\r\n                fileNameSpan.textContent = selectedFile.name;\r\n                fileInfoBox.style.display = 'flex';\r\n            } else {\r\n                resetFile();\r\n            }\r\n        });\r\n\r\n        removeFileBtn.addEventListener('click', () => {\r\n            resetFile();\r\n        });\r\n\r\n        function resetFile() {\r\n            selectedFile = null;\r\n            fileInput.value = '';\r\n            fileNameSpan.textContent = '';\r\n            fileInfoBox.style.display = 'none';\r\n        }\r\n\r\n        async function sendMessage() {\r\n            const userMsg = input.value.trim();\r\n            if (!userMsg && !selectedFile) return;\r\n\r\n            messages.innerHTML += `<div class=\"user-message\">${userMsg || '[File attached]'}<\/div>`;\r\n            messages.scrollTop = messages.scrollHeight;\r\n\r\n            input.value = '';\r\n            resetFile();\r\n\r\n            const formData = new FormData();\r\n            formData.append('action', 'ai_concierge_reply');\r\n            formData.append('message', userMsg);\r\n            if (selectedFile) formData.append('file', selectedFile);\r\n\r\n            const response = await fetch('https:\/\/resources.theapaafrica.org\/wp-admin\/admin-ajax.php', {\r\n                method: 'POST',\r\n                body: formData\r\n            });\r\n\r\n            const data = await response.json();\r\n            messages.innerHTML += `<div class=\"bot-message\">${data.reply}<\/div>`;\r\n            messages.scrollTop = messages.scrollHeight;\r\n\r\n        }\r\n\r\n        sendBtn.addEventListener('click', sendMessage);\r\n        input.addEventListener('keypress', e => { if (e.key === 'Enter') sendMessage(); });\r\n    });\r\n    <\/script>\r\n\r\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-4387","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Assistant IA - Les partenaires responsables de l&#039;Afrique<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Assistant IA - Les partenaires responsables de l&#039;Afrique\" \/>\n<meta property=\"og:url\" content=\"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/\" \/>\n<meta property=\"og:site_name\" content=\"Les partenaires responsables de l&#039;Afrique\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-13T07:12:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/assistant-ia\\\/\",\"url\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/assistant-ia\\\/\",\"name\":\"Assistant IA - Les partenaires responsables de l'Afrique\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/#website\"},\"datePublished\":\"2025-11-17T12:31:38+00:00\",\"dateModified\":\"2026-01-13T07:12:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/assistant-ia\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/assistant-ia\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/assistant-ia\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/accueil-du-pole-numerique\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Assistant IA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/\",\"name\":\"Les partenaires responsables de l'Afrique\",\"description\":\"Instaurer la confiance, la responsabilit\u00e9 et l'impact\",\"publisher\":{\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/#organization\",\"name\":\"Les partenaires responsables de l'Afrique\",\"url\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/resources.theapaafrica.org\\\/wp-content\\\/uploads\\\/APA-logo-300x71-1.png\",\"contentUrl\":\"https:\\\/\\\/resources.theapaafrica.org\\\/wp-content\\\/uploads\\\/APA-logo-300x71-1.png\",\"width\":300,\"height\":71,\"caption\":\"Les partenaires responsables de l'Afrique\"},\"image\":{\"@id\":\"https:\\\/\\\/resources.theapaafrica.org\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Assistant IA - Les partenaires responsables de l'Afrique","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/","og_locale":"fr_FR","og_type":"article","og_title":"Assistant IA - Les partenaires responsables de l'Afrique","og_url":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/","og_site_name":"Les partenaires responsables de l'Afrique","article_modified_time":"2026-01-13T07:12:39+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/","url":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/","name":"Assistant IA - Les partenaires responsables de l'Afrique","isPartOf":{"@id":"https:\/\/resources.theapaafrica.org\/fr\/#website"},"datePublished":"2025-11-17T12:31:38+00:00","dateModified":"2026-01-13T07:12:39+00:00","breadcrumb":{"@id":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/resources.theapaafrica.org\/fr\/assistant-ia\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/resources.theapaafrica.org\/fr\/accueil-du-pole-numerique\/"},{"@type":"ListItem","position":2,"name":"Assistant IA"}]},{"@type":"WebSite","@id":"https:\/\/resources.theapaafrica.org\/fr\/#website","url":"https:\/\/resources.theapaafrica.org\/fr\/","name":"Les partenaires responsables de l'Afrique","description":"Instaurer la confiance, la responsabilit\u00e9 et l'impact","publisher":{"@id":"https:\/\/resources.theapaafrica.org\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/resources.theapaafrica.org\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/resources.theapaafrica.org\/fr\/#organization","name":"Les partenaires responsables de l'Afrique","url":"https:\/\/resources.theapaafrica.org\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/resources.theapaafrica.org\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/resources.theapaafrica.org\/wp-content\/uploads\/APA-logo-300x71-1.png","contentUrl":"https:\/\/resources.theapaafrica.org\/wp-content\/uploads\/APA-logo-300x71-1.png","width":300,"height":71,"caption":"Les partenaires responsables de l'Afrique"},"image":{"@id":"https:\/\/resources.theapaafrica.org\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/pages\/4387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/comments?post=4387"}],"version-history":[{"count":2,"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/pages\/4387\/revisions"}],"predecessor-version":[{"id":4392,"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/pages\/4387\/revisions\/4392"}],"wp:attachment":[{"href":"https:\/\/resources.theapaafrica.org\/fr\/wp-json\/wp\/v2\/media?parent=4387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}